Wondering if I'm doing something wrong here.
One of the things I like about php is you can run a function on an array, and it will apply it to every element of the array e.g.
That works marvellously most of the time but, certain functions turn every element of the array into the letter A, e.g.PHP Code:$_GET = myFunction ( $_GET );
Will turn them all to an A (also found that nl2br, htmlentities, addslashes / stripslashes do the same).PHP Code:$_GET = htmlspecialchars ( $_GET );
Thankfully, str_replace works fine.
Anything I'm doing here or is the bug?







Bookmarks