flemingmike Posted September 23, 2010 Share Posted September 23, 2010 hello, if i have $big=3410 how can i take the last 2 digits of that to make it so that i only get the 10? hope this makes sence. Quote Link to comment https://forums.phpfreaks.com/topic/214205-make-number-smaller-hard-to-title/ Share on other sites More sharing options...
taquitosensei Posted September 23, 2010 Share Posted September 23, 2010 substr $big=3410 $big=substr($big,-2); Quote Link to comment https://forums.phpfreaks.com/topic/214205-make-number-smaller-hard-to-title/#findComment-1114573 Share on other sites More sharing options...
flemingmike Posted September 23, 2010 Author Share Posted September 23, 2010 thx Quote Link to comment https://forums.phpfreaks.com/topic/214205-make-number-smaller-hard-to-title/#findComment-1114576 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.