Posted By

tylerhall on 11/30/-1


Tagged

form escape fix slashes


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Roshambo
hudge


Fix Form Slashes


 / Published in: PHP
 

Fixes MAGIC_QUOTES.

  1. function fix_slashes($arr = "")
  2. {
  3. if(empty($arr))
  4. return;
  5. if(!is_array($arr))
  6. return stripslashes($arr);
  7. else
  8. return array_map('fix_slashes', $arr);
  9. else
  10. return $arr;
  11. }

Report this snippet  

You need to login to post a comment.