I am getting a error saying this code needs a parentheses but every time so far it hasn't came up as a problem before here is the full error message:
Parse error: syntax error, unexpected T_FUNCTION, expecting ')'
Here is my code:the first line is where is says the error is:
$escaped_values = join(',', array_map(function($v) {
return "'" . mysql_real_escape_string($v) . "'";
}, array(
$_POST['account_status'],
$activation_key,
$_POST['first_name'],
$_POST['last_name'],
$_POST['email'],
$_POST['username'],
$password,
$_POST['phone_number']
)));