j007ha Posted September 22, 2008 Share Posted September 22, 2008 Ermm... For example i have a value which is 1.3435,and i only want to get the decimal value which is after the . sign so in this case the value for what i want is 3435..... how can i determine and get the value after the . sign? any help i will very appreciate~^^ Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/ Share on other sites More sharing options...
genericnumber1 Posted September 22, 2008 Share Posted September 22, 2008 $var = 1.3435; echo $var - intval($var); Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/#findComment-647492 Share on other sites More sharing options...
j007ha Posted September 22, 2008 Author Share Posted September 22, 2008 no...that is not wat i want...from ur answer wat i can get is the value 0.3435 but wat i want is 3435 only...^^ Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/#findComment-647496 Share on other sites More sharing options...
genericnumber1 Posted September 22, 2008 Share Posted September 22, 2008 Ah, sorry... $var = 1.3435; echo substr(strstr($var, '.'), 1); Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/#findComment-647498 Share on other sites More sharing options...
j007ha Posted September 22, 2008 Author Share Posted September 22, 2008 thx u~u r the best...love u forever ... muacks~~~ Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/#findComment-647500 Share on other sites More sharing options...
waynew Posted September 22, 2008 Share Posted September 22, 2008 I laughed out loud. Link to comment https://forums.phpfreaks.com/topic/125257-please-help-me-~/#findComment-647574 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.