Function to return clean 'currency' value.
#1

Hello there,

I'm trying to create a function that expects an integer and returns a string (?) that has formatted the number so it reads good (I will only use this function for SendClientMessage's).

What will be a good way to do this?

PHP код:
FormatNumber(number)
{
    
// Ex. convert '10000' to '$10,000'
    
return converted;

Thanks in regards
Reply


Messages In This Thread
Function to return clean 'currency' value. - by Josh_Lotus - 10.01.2016, 00:27
Re: Function to return clean 'currency' value. - by Kqly - 10.01.2016, 01:08
Re: Function to return clean 'currency' value. - by itsCody - 10.01.2016, 01:22

Forum Jump:


Users browsing this thread: 1 Guest(s)