PHP amount value problem

sample value: 235989 (is an amount value)
required value: 235000 (only take thousands of digits)

fill it with 0 after the thousand bits, thank you!

Php
Mar.03,2021

intercept the string and fill it with zeros after rounding.


?
just divide it and multiply it. Can this be done with a math library or a string library?

floor($n/1000)*1000
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c1b2-2bb3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c1b2-2bb3d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?