Posted By

gdonald on 09/27/06


Tagged

array addslashes


Versions (?)

php array addslashes


 / Published in: PHP
 

  1. function slashes( $var )
  2. {
  3. if( is_array( $var ) )
  4. {
  5. return array_map( 'slashes', $var );
  6. }
  7. else
  8. {
  9. return addslashes( $var );
  10. }
  11. }

Report this snippet  

You need to login to post a comment.