mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
This commit is contained in:
@@ -231,6 +231,9 @@ if (false) {
|
|||||||
print 'Does';
|
print 'Does';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ternary operator
|
||||||
|
print (false ? 'Does not get printed' : 'Does');
|
||||||
|
|
||||||
$x = 0;
|
$x = 0;
|
||||||
if ($x === '0') {
|
if ($x === '0') {
|
||||||
print 'Does not print';
|
print 'Does not print';
|
||||||
@@ -240,6 +243,8 @@ if ($x === '0') {
|
|||||||
print 'Does print';
|
print 'Does print';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// This alternative syntax is useful for templates:
|
// This alternative syntax is useful for templates:
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user