mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
Make if statement result clearer
This commit is contained in:
parent
c3cc11f2a8
commit
c5fca52d14
@ -190,9 +190,9 @@ if (/* test */) {
|
||||
}
|
||||
|
||||
<?php if (/* test */): ?>
|
||||
<!-- Do something that isn't PHP -->
|
||||
This is displayed if the test is truthy.
|
||||
<?php else: ?>
|
||||
<!-- Do something default -->
|
||||
This is displayed otherwise.
|
||||
<?php endif; ?>
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user