note 117017 deleted from language.oop5.autoload by cmb
| From: | cmb@php.net | Date: | Tue, 05 Nov 2019 14:47:09 +0000 |
| Subject: | note 117017 deleted from language.oop5.autoload by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212942@lists.php.net to get a copy of this message | ||
Note Submitter: dsimer at gmail dot com
----
On the if/else, you are better off either entering a break after success and continue on else (if
you feel as though you have to return something), or otherwise not putting in an else. the else
with return will cause a premature end to the function.
Also, if you use an array of directories, it may be a good idea to enter a blank ('') as
the first value so that the script will check locally.