note 23604 deleted from function.array-rand by betz

From: Date: Thu, 16 Jun 2005 13:34:45 +0000
Subject: note 23604 deleted from function.array-rand by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90535@lists.php.net to get a copy of this message
Note Submitter: a.hole[AT]campbellshaw[DOT]com ---- Re: >lordwolf[at]homewolf[dot]com >09-May-2002 02:23 >Confirmed... >I can only get array_rand() to work if the second arg is >= 2. If the second arg is 1, the function returns a variable instead of an array. I suppose there was a reason for this, but I found it rather confusing and annoying... So the function does work, but just not in the way you'd assume. I should imagine you'd be able to sort yourself out with is_array() etc...

« previous php.notes (#90535) next »