I have a quick question how can I put the dollar sign in front of the numbers?
right now is like this:
12.00 $
'<td onclick="ShowHide(\'sec_'.$prod->serie.'\')" align="right">'.number_format($prod->preco, 2, '.', ',').' $</td>'.
I need this like this:
$12.00
Please help!
Quick help using dollar sign..
Moderator: General Moderators
-
nicolasi18
- Forum Newbie
- Posts: 3
- Joined: Thu Apr 14, 2011 11:42 am
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: Quick help using dollar sign..
Code: Select all
<td onclick="ShowHide(\'sec_'.$prod->serie.'\')" align="right">$ '.number_format($prod->preco, 2, '.', ',').' </td>'.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
-
nicolasi18
- Forum Newbie
- Posts: 3
- Joined: Thu Apr 14, 2011 11:42 am
Re: Quick help using dollar sign..
You are the best!! thanks it works perfect. 