refiking Posted May 31, 2009 Share Posted May 31, 2009 I get a value like this: $change = 27.5500 //How can I change that to this: $change = 27.55 Link to comment https://forums.phpfreaks.com/topic/160330-best-way-to-delete-characters/ Share on other sites More sharing options...
Ken2k7 Posted May 31, 2009 Share Posted May 31, 2009 Wouldn't it change to that automatically? I think you meant the string '27.5500', right? If so - number_format($change, 2); number_format Link to comment https://forums.phpfreaks.com/topic/160330-best-way-to-delete-characters/#findComment-846059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.