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. 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); 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 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
Archived
This topic is now archived and is closed to further replies.