Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Simple String Formatting Question

I was just wondering how I can insert characters into a string, but it has to cont from the end of the string and forward.

The actual task is:
10000000 to 10 000 000

Thanks for any help! Would be much appreciated!

Nozemi
[Image: eldrios-small.png]
PHP Code

<?php 
$num 
= 1000000; //don't know why the hf editor remove a 0 lol
echo number_format($num,0,'',' '); 
(Mar 6, 2014 02:06 PM)RedWaters Wrote:  
PHP Code

<?php 
$num 
= 1000000;
echo 
number_format($num,0,'',' '); 

That was very simple haha, thanks for your help! Much appreciated!
[Image: eldrios-small.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Tɦɛ AlexMay 18, 2016 03:26 PM 2 104 May 18, 2016 03:26 PM
Last Post: Tɦɛ Alex
[PHP] by +HazeOct 11, 2014 04:39 PM 17 264 Oct 11, 2014 04:39 PM
Last Post: Eight
[PHP] by camrympsNov 12, 2013 06:01 AM 3 83 Nov 12, 2013 06:01 AM
Last Post: Mafugsa Bob