Answers for "php multi if statement ternary"

PHP
1

php multi condition if

if($var == "abc" || $var == "def" || ...)
{
    echo "true";
}
Posted by: Guest on December-06-2020
0

Multiple Ternary operator in php

(something) ? 'foo' : ((somethingElse) ? 'bar' : ((bla) ? 'pool' : ((xxxxx) ? 'coffe' : '')));
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language