Break n
Posted: Sun Aug 08, 2004 12:41 pm
The paramter for Break is a nice thing and wanted to use it. But Im not getting it to work.
By the way the basic break which can be done in C also doesn't work in if {} blocks
Any way to solve this ? Or wasnt this the original intention of using break in php ?
Thanks
Code: Select all
<?php
if (1==1)
{
if (2==3)
echo "2=3";
else
break 1;
echo "1==1";
}
?>Code: Select all
if (2==2)
{
break;
}Thanks