usually when we write include, we mean that in the place where they wrote there and the code from the file is inserted
what happens with __autoload
? where does he insert the files?
and if to use?
spl_autoload_register('autoload');
ADDITION:
Now let's say the class is called new User()
well, let's say autoload prisabachil file before this call, but then suppose in another class again called new User()
admissible even in a different scope, and that autoload re-attaches file?
it is not effective if so
SUPPLEMENT 2:
But let's say the call spl_autoload_register()
is in one class and the function itself in another
Where then the file will be included?
In the place where the function spl_autoload_register()
is called or in the function itself where is the inclus registered?