I want two things to happen when this is true. It's working fine, but i'm not sure is this good programming.
$a =1;
($a == 1) ? (($b= 'val1') && ($c= 'val2')) : null;
echo $b . '<br/>';
echo $c;
I could simply write with if else but this way, it's smart. please help me...