Your Ad Here

Posted By

xuanyan on 01/04/09


Tagged

textmate stripslashesrecursive


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


stripslashes_recursive and addslashes_recursive


 / Published in: PHP
 

  1. function stripslashes_recursive($array)
  2. {
  3. $array = is_array($array) ? array_map('stripslashes_recursive', $array) : stripslashes($array);
  4.  
  5. return $array;
  6. }
  7.  
  8. function addslashes_recursive($array)
  9. {
  10. $array = is_array($array) ? array_map('addslashes_recursive', $array) : addslashes($array);
  11.  
  12. return $array;
  13. }

Report this snippet  

You need to login to post a comment.