String manipulation

String manipulation

am 11.09.2009 08:35:10 von Ron Piggott

------=_NextPart_000_0040_01CA3288.7BAE9320
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How would I put a space after each letter:

echo str_shuffle(stripslashes(mysql_result($word_result,0,"word") );

Ron
------=_NextPart_000_0040_01CA3288.7BAE9320--

Re: String manipulation

am 11.09.2009 10:11:16 von boclair

Ron Piggott wrote:
> How would I put a space after each letter:
>
> echo str_shuffle(stripslashes(mysql_result($word_result,0,"word") );
>
> Ron
>
CSS best handles styling

E.G.


OR
print "
$word_result
";
?>

Increase the em value to customize the spacing

Louise

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: String manipulation

am 11.09.2009 10:17:16 von olavi

You can do like this:

$str = 'helloworld';

echo preg_replace('//', ' ', $str);

this will print out -> h e l l o w o r l d

Olavi Ivask

> How would I put a space after each letter:
>
> echo str_shuffle(stripslashes(mysql_result($word_result,0,"word") );
>
> Ron



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php