I have this script that is running and displaying random images in order, but it is listing them all out rather than just one. I need to know how to limit it to just 1.
<?php
$content = array(
'http://www.address1.com|marketing|RE-volve Media Marketing Image',
'http://www.address2.com|search_marketing|RE-volve Media Search Marketing Image',
'http://www.address3.com|web_development|RE-volve Media Web Development Image',
);
shuffle($content);
foreach ($content as $value)
{
$explode = explode('|', $value);
echo '<a href="' . $explode[0] . '"><img src="assets/headers/' . $explode[1] . '.gif" alt="' . $explode[2] . '" title="' . $explode[2] . '"></a>';
}
?>