I have some code as follows:
foreach ($nixxie->ads as $ad) {
blah blah
}
I want to change that code so for the first item it processes different code, for the second item, it does something different again, but for all the remaining items, it does the same thing.
How do I modify this code to do that?
Thanks,
Jon