*note - I dislike perl now, php is so much easier
I have this code from perl, I can't find how to make it PHP
@req = qw(name email username password repass);
my $req_err;
for (@req) {
next if $in{$_};
$req_err++; last;
}
$username = $in{'username'};
error("Your username can only contain letters,numbers and _") unless $username =~ m< ^ w+ z >x;
Thank you for your time