Page 1 of 1

eek! I forgot the code to add a symbol after X chars.

Posted: Sat Jun 18, 2005 11:27 am
by Dale
Yeah i forgot...

Say you have

Code: Select all

<?php
$value = "123456789";

echo "$value";
?>
What was it again to have it echo the value 123,456,789 or 123.456.789, ect...

Posted: Sat Jun 18, 2005 11:52 am
by hawleyjr

Posted: Sat Jun 18, 2005 12:01 pm
by wwwapu
Or if you are not dreaming only of nice bank account you can use wordwrap()

Code: Select all

$value = "123456789";
print wordwrap($value, 3, ".",1);