justinh Posted December 16, 2008 Share Posted December 16, 2008 <?php $num = 5; $testing = num % 2; echo $testing; ?> why is this returning 0? =( Link to comment https://forums.phpfreaks.com/topic/137206-noob-question/ Share on other sites More sharing options...
justinh Posted December 16, 2008 Author Share Posted December 16, 2008 ugh nevermind need sleep! lol stupid mistake Link to comment https://forums.phpfreaks.com/topic/137206-noob-question/#findComment-716747 Share on other sites More sharing options...
imdead Posted December 16, 2008 Share Posted December 16, 2008 You forgot the $ on num <?php $num = 5; $testing = $num % 2; echo $testing; ?> Link to comment https://forums.phpfreaks.com/topic/137206-noob-question/#findComment-716748 Share on other sites More sharing options...
Lamez Posted December 16, 2008 Share Posted December 16, 2008 are you a Java programmer? Link to comment https://forums.phpfreaks.com/topic/137206-noob-question/#findComment-716783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.