Re: String manipulation
| From: | olavi at city dot ee | Date: | Fri, 11 Sep 2009 08:17:16 +0000 |
| Subject: | Re: String manipulation | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46481@lists.php.net to get a copy of this message | ||
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