<?php

/**
 * Autoloader function to automatically include class files.
 * 
 * This function registers an autoloader using `spl_autoload_register` that 
 * will require the file named `<ClassName>.php` whenever a new class is instantiated.
 * 
 * Assumes that each class is defined in a file named exactly as the class name, 
 * with a `.php` extension, and that these files are located in the current 
 * include path.
 * 
 * Example:
 * - Instantiating `new Student()` will automatically include `Student.php`.
 * 
 * @return void
 */
spl_autoload_register(
  function ($class) {
    require_once "$class.php";
  }
);
