Snipply.com - Code snippet website
View Single Post
03-22-2008, 10:40 PM
Join Date: Feb 2008
I read somewhere that all $_GET, $_POST, $_COOKIE values are strings... but it works for me.....
I use this: $var = (int)$_GET['var'];
If it's not a number it will return 0, but of course it allows hex, values too...
- My PBB Game
- My Blog "Gaming With PHP"
The Following User Says Thank You to freenity For This Useful Post:
View Public Profile
Send a private message to freenity
Visit freenity's homepage!
Find More Posts by freenity