Doesn't work with the or statement. I will find out why later.
$var = 1;
echo ($var==1 ? 'true: ' : 'false');
$var = 1;
echo ($var==1 or $var ==0 ? 'true: ' : 'false');
seems to work if I use || instead of or.
$var = 1;
echo ($var==1 || $var ==0 ? 'true: ' : 'false');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community