I'm kinda new to php, i was doing function and this syntax error happened: error
function invalidUid($username) {
$result;
if (!preg_match("/^[a-zA-Z0-9]*$/"), $username) { #that is line 15
$result = true;
}
else {
$result = false;
}
return $result;
}