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
Menu