Here is how you do it:
$pictures = array( 1, 2, 3, 4, 5, 6, 7, etc.)
shuffle($pictures) //This will randomly rearrange them in the array.
//then
echo "$pictures[1]
echo $pictures[2]
echo $pictures[3]";
Dave Carrera <[EMAIL PROTECTED]> wrote: Hi All
I have a fuctioning array of about 20
"Dave Carrera" <[EMAIL PROTECTED]> menulis tgl 5/31/02 2:39:45 PM:
>
>Hi All
>
>I have a fuctioning array of about 20 items.
>What i would like to do is display 3 items from the array randomly and be
>able to place the output anywhere on the screen.
>
>I have looked at array rand and associated fu
Hi All
I have a fuctioning array of about 20 items.
What i would like to do is display 3 items from the array randomly and be
able to place the output anywhere on the screen.
I have looked at array_rand and associated functions at php.net and are
currently playing with the code to see if i