PHP Tips && Tricks

From D3xt3r01.tk
Revision as of 16:05, 11 June 2013 by Admin (talk | contribs) (Created page with "==Windows Safe directory name== <script lang="php"> function safename($d){ $d = preg_replace('|[\/\?<>\\\\:*\|"\(\)]|i', ' ', $d); $d = preg_replace('/\s+/', ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Windows Safe directory name

<script lang="php"> function safename($d){

       $d = preg_replace('|[\/\?<>\\\\:*\|"\(\)]|i', ' ', $d);
       $d = preg_replace('/\s+/', ' ', $d);
       return trim($d);

} </script>