Answers for "variable is 1 if something is true else 0 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
1

one lin if statement php

<?php if ($requestVars->_name == '') echo $redText; ?>
Posted by: Guest on August-17-2020

Code answers related to "variable is 1 if something is true else 0 php"

Browse Popular Code Answers by Language