I'm using the following code to display the elements in an array - $rssData (the output from an RSS file):
<?php
foreach ( $rssData as $news ) { ?>
<div class="soheader11"><a href="<?= $news['link'] ?>"><?= $news['title'] ?></a></div>
<div class="sogrey11"><?= $news['description'] ?></div>
<? } ?>
This works fine - but I want to be able to handle the first element in the array differently to the rest.
How can I format the first item one way, and then create a loop for the rest?
Thanks in advance for any help.