Answers for "php continue in if statement"

PHP
1

continue in php

<?php
for($i=0;$i<4;$i++)
{
    if($i==3)
    {
        continue;   
    }
    echo $i;
}
?>
Posted by: Guest on January-05-2022
0

PHP Break and Continue

<?php
for ($x = 0; $x < 10; $x++) {
  if ($x == 4) {
    break;
  }
  echo "The number is: $x <br>";
}
?>
Posted by: Guest on May-23-2022

Browse Popular Code Answers by Language