this is the code from the tutorial book.
class user {
// return if username is valid format
public static function validateUsername($username){
return preg_match('/^[A-Z0-9]{2,20}$/i', $username);
}
}
i wonder, what is the function of static?
it's too bad the book i read didn't explain it :(