Answers for "php multi else if one line"

PHP
5

write if and else in one line php

$result = ($data->status == 1) ? 'active' : 'disable'
Posted by: Guest on November-08-2020
1

php multi condition if

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

Browse Popular Code Answers by Language