Questions tagged [spl-autoload-register]

text: PHP function for adding a function to the auto-loading stack in the Standard PHP Library (SPL). This function will activate the stack if it is not already active.

PHP is featured in the Lazy Classes program

Currently, I am using an autoloader to include classes by using "glob" to read different directories and push them into an array. Is there a more efficient method for accomplishing this task? $path = './'; $files = array_merge( glob($path.&apos ...