pruntrut on 02/05/12
Last Edited at 02/05/12 05:43am
<?php$array = array('apples','bananas','cranberries','durians');$last_item = end($array); foreach($array as $item) { if ($item == $last_item) { print "I like to eat " . $item; }}?>
Report this snippet Tweet
Comment:
You need to login to post a comment.