seany123 Posted June 7, 2009 Share Posted June 7, 2009 i have this line of code: $msg .= "You have transferred <b>\"$english_format_number = number_format($Pamount);\"</b> points to <b>$username</b>.<p />"; but for some reason its not working. Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/ Share on other sites More sharing options...
Daniel0 Posted June 7, 2009 Share Posted June 7, 2009 $msg .= "You have transferred <b>\"" . number_format($Pamount) . "\"</b> points to <b>$username</b>.<p />"; Like that? Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851153 Share on other sites More sharing options...
seany123 Posted June 7, 2009 Author Share Posted June 7, 2009 $msg .= "You have transferred <b>\"" . number_format($Pamount) . "\"</b> points to <b>$username</b>.<p />"; Like that? with that its echoing for example: "2,000" with the quotes. Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851156 Share on other sites More sharing options...
Daniel0 Posted June 7, 2009 Share Posted June 7, 2009 Well, then what do you want? Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851157 Share on other sites More sharing options...
seany123 Posted June 7, 2009 Author Share Posted June 7, 2009 for it to echo the number without the ""s Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851159 Share on other sites More sharing options...
Daniel0 Posted June 7, 2009 Share Posted June 7, 2009 Well, then remove them. You were the person who added it... $msg .= "You have transferred <b>" . number_format($Pamount) . "</b> points to <b>$username</b>.<p />"; Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851161 Share on other sites More sharing options...
seany123 Posted June 7, 2009 Author Share Posted June 7, 2009 Well, then remove them. You were the person who added it... $msg .= "You have transferred <b>" . number_format($Pamount) . "</b> points to <b>$username</b>.<p />"; oh... thanks its working great now.. Quote Link to comment https://forums.phpfreaks.com/topic/161300-solved-using-english_format_number-number_format/#findComment-851166 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.