Re: random string

From: Date: Tue, 17 Oct 2006 12:36:41 +0000
Subject: Re: random string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-243245@lists.php.net to get a copy of this message
On 10/17/06, Ross <ross@aztechost.com> wrote:
Hi, I want to randomise a string $myrandom = rand("ross", "andrea");
I suggest : $array_name = array("rose","andrea"); $myrandom = array_rand($array_name); echo $myrandom[0]; Brice. I know this doesn't work but is there a built in function to do this?
R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#243245) next »