Created
July 21, 2020 14:28
-
-
Save AppleCEO/dd1b0713b731d85edfbe1a97effc33ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // declaration | |
| function foo() | |
| { | |
| // function body | |
| } | |
| // conditional declaration is *not* a side effect | |
| if (! function_exists('bar')) { | |
| function bar() | |
| { | |
| // function body | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment