Answers for "js php number format"

PHP
2

js php number format

function numberWithSpaces(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
}
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language