I am learning advanced PHP standards and trying to implement new and useful methods. Earlier I was using __autoload just to escape including multiple files on each page, but recently I have seen a tip on __autoload manual

spl_autoload_register() provides a more flexible alternative for
autoloading classes. For this reason, using __autoload() is
discouraged and may be deprecated or removed in the future.

but I really can’t figure out how to implement spl_autoload and spl_autoload_register

3 Answers
3

Leave a Reply

Your email address will not be published. Required fields are marked *