title: What is Autoloading; How do you use spl_autoload, __autoload and spl_autoload_register?
body: <p>I am learning advanced PHP standards and trying to implement new and useful methods. Earlier I was using <code>__autoload</code> just to escape including multiple files on each page, but recently I have seen a tip on <a href="http://in2.php.net/__autoload" rel="noreferrer"><code>__autoload manual</code></a> </p>
  
  <blockquote>
    <p><strong>spl_autoload_register()</strong> provides a more flexible alternative for
    autoloading classes. For this reason, using <strong>__autoload()</strong> is
    discouraged and may be deprecated or removed in the future.</p>
  </blockquote>
  
  <p>but I really can't figure out how to implement <a href="http://www.php.net/manual/en/function.spl-autoload.php" rel="noreferrer"><code>spl_autoload</code></a> and <a href="http://www.php.net/manual/en/function.spl-autoload-register.php" rel="noreferrer"><code>spl_autoload_register</code></a></p>