Answers for "if not php"

PHP
6

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
13

php if b

$a = random_int(0, 10);
$b = random_int(0, 10);
if ($a > $b) {
  echo 'a is greater than b';
} elseif ($a == $b) {
  echo 'a is equal to b';
} else {
  echo 'a is less than b';
}
Posted by: Guest on October-03-2020
1

if not php

$a = true;

if(!$a) {
	echo "False"; // Will return this
} else {
	echo "True";
}
Posted by: Guest on April-30-2020

Browse Popular Code Answers by Language