On 10/17/06, Ross <[EMAIL PROTECTED]> 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


Reply via email to