what is the difference between these two foreach loops ?
- by Gaurav Sharma
I have seen in cakephp that foreach loop is used like this
foreach($tags as $tag) :
\\code here
endforeach;
and I used to write this style of foreach
foreach($tags as $tag)
{
//code here
}
what is the difference between these two foeach loops and which one is better and makes more sense to implement ?
Thanks