Ivory Posted August 4, 2008 Share Posted August 4, 2008 How would I go about checking whether a submitted number ends in '0'? Link to comment https://forums.phpfreaks.com/topic/118097-how-would-i-go-about-checking-whether/ Share on other sites More sharing options...
JonnyThunder Posted August 4, 2008 Share Posted August 4, 2008 $mystring = "helloworld0"; if ($mystring[strlen($mystring)-1] == "0") { print "YES - It's got a zero"; } Link to comment https://forums.phpfreaks.com/topic/118097-how-would-i-go-about-checking-whether/#findComment-607569 Share on other sites More sharing options...
Ivory Posted August 4, 2008 Author Share Posted August 4, 2008 thank you Link to comment https://forums.phpfreaks.com/topic/118097-how-would-i-go-about-checking-whether/#findComment-607598 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.