php array addslashes


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



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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.