Answers for "php if block"

PHP
7

php inline if

/* most basic usage */
$var = 5;
$var_is_greater_than_two = ($var > 2 ? true : false); // returns true
Posted by: Guest on January-28-2020
0

if certain condition is met exit if block php

if($bla){do{
  $bla = get_bla();
  if(empty($bla)) break;
  do($bla);
}while(false);}
Posted by: Guest on September-18-2020

Browse Popular Code Answers by Language