Autoloading Classes in an MVC Framework in PHP

Our educational framework uses non-standard rules for class autoloading (explain what the differences are), so we will have to implement our own autoloader in the file index.php:

index.php<?php
  namespace Core;
  
  error_reporting(E_ALL);
  ini_set('display_errors', 'on');
  
  spl_autoload_register(function($class) {
    // your autoload implementation
  });
?>
Задание 1

Implement the autoload function. Test its operation.