Hi all, I'm very *very* new to PHP and just trying to wrap my mind around it. Thanks in advance for helping this newbie.
Here's what I want to do. A friend of mine has a php script that prints 5 random links from an array. However, his array contains over 300 links, whereas I only have about 100. I've pored over every PHP website I can think of, and I haven't been able to find away to keep the script from repeating the links more than once in the list. Here's the portion of the script that prints the array:
for ($loop = 0; $loop < 5; $loop++)
$n1 = 0;
$n2 = sizeof($URLs) -1;
$num = (rand($n1,$n2));
print("<b>+ </b><a href = "http://");
What would I need to change here?
Thanks in advance!