On 9 April 2011 15:43, Curtis Maurand wrote:
>
>
> Curtis Maurand wrote:
>>
>>
>>
>> seems to
> me that you have an array with integers as the keys.
>>
>>
> $desired_key = rand(0, count($array));
>
> sorry, I hadn't had
> coffee, yet. The line above should be:
>
> $desired_key = rand(0, count($ar
Curtis Maurand wrote:
>
>
>
> seems to
me that you have an array with integers as the keys.
>
>
$desired_key = rand(0, count($array));
sorry, I hadn't had
coffee, yet. The line above should be:
$desired_key = rand(0, count($array) - 1);
>
> $desired_value => $array[$desired_key];
>
> Ch
seems to me that you have an array with integers as the keys.
$desired_key = rand(0, count($array));
$desired_value =
$array[$desired_key];
Cheers,
Curtis
Simon J Welsh wrote:
> On 9/04/2011, at 3:39 PM, Scotty Logan
wrote:
>
>> On Apr 8, 2011, at 8:20 PM, Kirk Bailey
wrote:
>>> in otherwo
On 9/04/2011, at 3:39 PM, Scotty Logan wrote:
> On Apr 8, 2011, at 8:20 PM, Kirk Bailey wrote:
>> in otherwords, the entire idea of picking one of N objects, whatever they
>> are- strings, numbers, gummybears, lined up in a listing, and return the one
>> item selected. This seems a common enough
On Apr 8, 2011, at 8:20 PM, Kirk Bailey wrote:
> in otherwords, the entire idea of picking one of N objects, whatever they
> are- strings, numbers, gummybears, lined up in a listing, and return the one
> item selected. This seems a common enough function there should be a simple
> way to do it a
in otherwords, the entire idea of picking one of N objects, whatever
they are- strings, numbers, gummybears, lined up in a listing, and
return the one item selected. This seems a common enough function
there should be a simple way to do it already in php. HOWEVER, I
ain't findin' it that way, n
6 matches
Mail list logo