Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Number format

I have a link in my header that shows amount of money in bank and it links to the bank. It looks like this....

<a href='bank.php'>Go Station Bank: \$".number_format($ir['bankmoney'])."

 

Hope that helps.

~Natasha

Posted

Re: Number format

 

that money_formatter function is useless, number_format does the same, you'll just have to add a $ before it

I object. I think the money formatter is great. What if you want to change currency? What if you want to make a copy of your current game, all mods included, in order to start a new one? Maybe your theme changes and you need a new currency.

I for one dread having to go through my code removing all my ASCII currency marks as I create my 2nd game.

Posted

Re: Number format

There isn't going to be many places you have a currency symbol, maybe homepage, profiles, shops, a few other places

If i was to change currencies i'd just use output buffering and regex the replacements, while i got around to nailing the last few spots it still had it

Doesn't matter to me, I just use money() as a function, still has the symbol, my point is that money_formatter wastes a lot of time with how it works

Posted

Re: Number format

yeah

print '$'; - the ' disables $ and sql

so decepti0ns should work lol i know natasha said it worked,

$cash='source';

print "\$".number_format($cash);

lol :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...