Jump to content

[SOLVED] edit a string


jonaHill87

Recommended Posts

Hi all, I just need a bit of help trying to edit a string. I have random values that I'm pulling out of a database. The values are numbers with decimal points. For example 23.8604 or 345.7772. I just want all of the numbers before the decimal place and the two numbers after. So instead of 345.7772, I want to display 345.77. I'm not sure what string functions I can use to do this. Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/103433-solved-edit-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.