Well it is like:
$a => [0] => ['Action'] => ['text']
=> ['banner']
=>['Category'] => ['description']
[1] => ['Action'] => ['text']
=> ['banner']
=>['Category'] => ['description']
.....
Even if array_rand can't cope with the above structure, should rand()
%count($a) be working?
On May 18, 10:18 am, WebbedIT <[email protected]> wrote:
> srand() and rand() are not functions from the Cake core, they are PHP
> functions and as such operate as the PHP manual says they do.
>
> There must be some other factor that is causing your issue, maybe
> something to do with the way the array your trying to randomise is
> structured?
>
> HTH
>
> Paul.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with
> their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en