stripslashes_recursive and addslashes_recursive


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.