codeguy/php-the-right-way — pull request #188 by deadlyhifi (2012-10-11 04:22:04+00:00)
Title: Return true/ false in ternary operators

The Basics page states values cannot be 'returned' using ternary operators.

You can using the following syntax:

$a = 5;
return ($a == 5) ? true : false;