mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 06:47:54 +02:00
Make if statement result clearer
This commit is contained in:
@@ -190,9 +190,9 @@ if (/* test */) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
<?php if (/* test */): ?>
|
<?php if (/* test */): ?>
|
||||||
<!-- Do something that isn't PHP -->
|
This is displayed if the test is truthy.
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<!-- Do something default -->
|
This is displayed otherwise.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user