How are two or more expressions executed in a conditional operator like the following which I tried but is not working in php:
$test = TRUE;
$val1 = 0;
$val2 = 0;
// want to execute two expressions where true
$test ? $val1 = 23, $val2 = 56 : ""; // this is not working
I used to do this in C++ and it worked but this is php. So how is it done in php?