I have a error in line 24 on my code
Code error on website: Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /core/init.php on line 24
Here's the code:
<?php
session_start();
$GLOBALS['config'] = array(
'mysql' => array(
'host' => 'i added my host here',
'username' => 'i added my username',
'password' => 'and pass',
'db' => 'and password'
),
'remember' => array(
'cookie_name' => 'hash',
'cookie_expiry' => 604800
),
'session' => array(
'session_name' => 'users',
'token_name' => 'token'
)
);
error here: spl_autoload_register(function($class) {
require_once 'classes/' . $class . '.php';
});
require_once 'functions/sanatize.php';
I don't know what it means by the error. But its around where i said the error is.