Php > Arrays
Add Slashes Recursively
Add Slashes Recursively function aslashes($array) { if(is_array($array)){ foreach($array as $key => $val){ if(is_array($key) { return aslashes($key); } else { $return[$key] = stripslashes($val); // recurse } } return($return); } else{ return(addslashes($array)); // return slash'ed value } } ?> this code will allow you to pass it a multi-dimensional array for parsing or you can pass it a normal $variable
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage