Re: Scrambling a word
| From: | Ron Piggott | Date: | Sat, 05 Jul 2008 01:23:58 +0000 |
| Subject: | Re: Scrambling a word | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276292@lists.php.net to get a copy of this message | ||
Is there a way to output the results with a space between each
character?
$shuffled = str_shuffle($str);
On Sat, 2008-07-05 at 01:20 +0200, Stefano Esposito wrote:
> On Fri, 04 Jul 2008 18:52:49 -0400
> Ron Piggott <ron.php@actsministries.org> wrote:
>
> > I am using PHP 4
> >
> > I am trying to figure out how to scramble a word.
> >
> > Example: hello so the output might be elolh
> >
> > Any ideas?
> >
> > Ron
> >
> >
>
> str_shuffle()
>
>
> --
> Email.it, the professional e-mail, gratis per te:
> http://www.email.it/f
>
> Sponsor:
> Vieni nei Riccione Family Hotels! Ti aspettano servizi per bambini, ampi spazi per il gioco e
> tanto divertimento! Prenota subito on-line la tua vacanza!
> Clicca qui:
> http://adv.email.it/cgi-bin/foclick.cgi?mid=8058&d=5-7