string to currency format


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount value but in string format like so..

"000000010000" -->desire result 100.00
"000000002000" -->desire result 20.00
"000000100050" -->desire result 1000.50

so how's the hell I can format the string so the end result will be
100.00
20.00
1000.50

any help are appreciated.

No comments posted yet

Your Answer:

Login to answer
146 Like 44 Dislike
Previous forums Next forums
Other forums

Filtering for a phrase using pregmatch
Here is my code which looks for addresses which start with ' src=" '

Code: [Select]preg_

start new row of pictures
on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get

very easy question about SQL info
Hello,
I think that I have a very easy question.
I know how to create a form using php SQL and

Calling strings from other php class
I have test1.php{
$string1;
$string2;
....
... //10 strings in this class <

HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen

Warning: mysql_num_rows() supplied argument is not a valid MySQL result resource
This may be simple I just may need another pair of eyes..

When i get records back the below c

Generate PDF
Hi guys,

I would like to know if there is a way to generate pdf when clicking on a link. In f

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

I face problems to extract data from one table and insert it in another one
Hi,

For modifications, I have to extract data from one table and insert it in another one

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash