View Single Post
Old 03-22-2008, 10:40 PM   #22 (permalink)
freenity
The Acquainted
 
freenity's Avatar
 
Join Date: Feb 2008
Posts: 119
Thanks: 17
freenity is on a distinguished road
Default

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...
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote
The Following User Says Thank You to freenity For This Useful Post:
Nor (03-24-2008)