The alternative syntax I just knew about today is like this:foreach($list as $item)
{
echo $item;
}
foreach($list as $item):Quite cool. Other control statements as well can be closed in a similar manner. Check out the alternative syntax for control structures from the PHP manual.
echo $item;
endforeach