Forum Moderators: coopster
I call an include depending of GET['id'] variable.
Variable is checked with function but I have not yet found the solution to this.
When typing 005 instead of 5, everything works fine (because 005 and 5 are the same) except for calling the include (include005.php qnd include5.php are not the same).
What should I do to remove the zeros before any number?
So that 00000102 returns 102?
Thanks
$val = $val - 0; # to convert to a number
or:
$val = intval($val); # to convert to an integer