No prob!Originally Posted by frankiehots
I am glad you solved your problem![]()
| SitePoint Sponsor |





No prob!Originally Posted by frankiehots
I am glad you solved your problem![]()


duuudie, one more question. Your suggestion worked great but now I am trying to fully understand it. Mainly the part where you use recursion. Why is it necessary to to use that approach?Originally Posted by duuudie





to strip slashes from array elements. its detecting if its array then take that element and pass it to function again till there are no more arrays and then strip its slashes (as far as i know you cant directly strip slashes from array). so this function would work like a charm on arays too same like a string.
at least i think so![]()





Also one important thing to note is that we apply the function only if magic_quotes_gpc() is on, using the get_magic_quotes_gpc() function.
It returns 0 if mgqu is off, 1 if on.
If it returns something (ie 1) we apply the recursive function to the whole array of the superglobals $_GET, $_POST, $_COOKIES
that's it.
Don't hesitate to ask if there is something else that you would like to understand![]()
Bookmarks