 <p>If you want to still break from <code>if</code>, you can use while(true)</p> <p>Ex.</p> <pre><code>$count = 0; if($a==$b){ while(true){ if($b==$c){ $count = $count + 3; break; // By this break you will be going out of while loop and execute remaining code of $count++. } $count = $count + 5; // break; } $count++; } </code></pre> <p>Also you can use switch and default.</p> <pre><code>$count = 0; if($a==$b){ switch(true){ default: if($b==$c){ $count = $count + 3; break; // By this break you will be going out of switch and execute remaining code of $count++. } $count = $count + 5; // } $count++; } </code></pre>