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

Multi image upload
I have a gallery to build and want to build a dynamic upload form to allow for $var number of fields

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

PHP SUBMIT
Code: <input name="doLogin" type="image" src="images/loginsubmit.jpg

Sales orders ans reservations not taken into account on MPS / MRP
Hello,

I am implementing the MPS / MRP and I have the following problem:

I ha

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

timezone change with date()
so i put all my times for posts in my made from scratch forum(not phpbb3 or sm)
in my mysql db u

for some reason mysql query not working, not inserting, please check it out
This code is not inserting anything into my db, don't know why, the $_SESSION variable does contain

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

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