Welcome Guest, Not a member yet? Register   Sign In
is_int problem ?
#1

[eluser]Spleshmen[/eluser]
my third uri segment is a number and before i use it i need to check so i am using is_int but its not working ,any chance some one can help me fix this?thanks
Code:
$id = $this->uri->segment(3);
echo $id; //it displays the number from my url
if (is_int($id)==TRUE)
echo 'working';
else
echo 'not working';


Messages In This Thread
is_int problem ? - by El Forum - 03-07-2010, 01:19 PM
is_int problem ? - by El Forum - 03-07-2010, 01:29 PM
is_int problem ? - by El Forum - 03-07-2010, 01:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB