PHP - How to color "echo format_number" outpout

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
linuxsoft
Forum Newbie
Posts: 1
Joined: Sun Sep 13, 2009 10:58 am

PHP - How to color "echo format_number" outpout

Post by linuxsoft »

Code: Select all

<?php if($gain1>0) echo number_format($gain1, 2, '.', ',');
elseif ($gain1<0) echo number_format($gain1, 2, '.', ','); else echo number_format($gain1, 2, '.', ','); ?>
Thanks.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP - How to color "echo format_number" outpout

Post by requinix »

Tried learning HTML yet?
Post Reply