From here:
If there are only 3 possibilities, you could do this:
$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];
This is the closest that PHP can come to JS short circuit assignments.
From here:
If there are only 3 possibilities, you could do this:
$id = $row['best'] or $id = $row['average'] or $id = $row['bad'];
This is the closest that PHP can come to JS short circuit assignments.
lang-php