Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]

The semi-colons need to go inside the curly braces, to mark the ends of the array_push() statements:

if(empty($username)) { array_push($errors, "Username is required"); }
if(empty($email)) { array_push($errors, "Email is required"); }
if(empty($password)) { array_push($errors, "Password is required"); }

You don’t need semi-colons after the close braces.

error code: 523