Hacker News new | ask | show | jobs
by cstrat 4371 days ago
Like you said, I wouldn't use it without first cleaning the input. I guess I use it more out of habit and preferring a straight variable to an array... just feels neater.

Good point on the memory, but I wouldn't think thats a big issue. I haven't tested right now, but I dont remember ever having issues using the $_GET variable after exporting? Not sure if thats what you meant.

1 comments

If I am not mistaken, PHP is copy-on-write, so if extract just copy value then memory usage wouldn't be doubling.