spl_autoload_register(function (String $class) {
$sourcePath = '/home/user/example/new/';
$replaceDirectorySeparator = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$filePath = $sourcePath . $replaceDirectorySeparator . '.php';
if (file_exists($filePath)) {
require($filePath);
}
});
if ( preg_match('/[<>]/', $data['head']) ) {
$errors[] = 'Ошибка';
}