PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
werlop wrote:... Where $data is an array, or do you have to run the function on each element? e.g. strip all slashes from all elements in the array in one go.
You'd be surprised what you can find on that site.
I finally broke down and went on a few years back, and couldn't believe all the new time savers they stuck in there that I was wasting time writing around.
Magic quotes settngs can do it all automatically, but it's probably better off if you have a choice.
Without that, yes you have to strip each element individually, one way or another, but a user-defined function can clean up the code a bit. Another idea: