feat: Restore commify() function

This commit is contained in:
Roman Kelesidis 2025-07-02 12:02:25 +03:00
commit 2b5fa262b5
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -568,6 +568,14 @@ function url_arg($url, $arg, $value, $amp = '&')
return $url . $anchor;
}
/**
* Adds commas between every group of thousands
*/
function commify($number): string
{
return number_format($number);
}
/**
* Returns a size formatted in a more human-friendly format, rounded to the nearest GB, MB, KB..
*/