Posted By

Zwendel on 10/16/09


Tagged

replace regexp special characters


Versions (?)

Remove all non word characters


 / Published in: PHP
 

  1. $fileName = preg_replace('/[\W]/','_',$name)

Report this snippet  

You need to login to post a comment.