This commit is contained in:
Adam 2013-07-03 08:49:38 -07:00
commit 8ffd02feff

View File

@ -231,6 +231,9 @@ if (false) {
print 'Does';
}
// ternary operator
print (false ? 'Does not get printed' : 'Does');
$x = 0;
if ($x === '0') {
print 'Does not print';
@ -240,6 +243,8 @@ if ($x === '0') {
print 'Does print';
}
// This alternative syntax is useful for templates:
?>