justinh Posted December 16, 2008 Share Posted December 16, 2008 <?php $num = 5; $testing = num % 2; echo $testing; ?> why is this returning 0? =( Quote 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 Quote 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; ?> Quote 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? Quote Link to comment https://forums.phpfreaks.com/topic/137206-noob-question/#findComment-716783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.