can uri segment accept last segment value as 0, why? why not?

#2
[eluser]InsiteFX[/eluser]
Did you try echoing it out to see what you get?

Most likely PHP will think it is FALSE 0 if it doe's then you could try the below.
Code:
$value = (int) $this->url->segment(3);


Messages In This Thread
can uri segment accept last segment value as 0, why? why not? - by El Forum - 02-22-2012, 07:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.