Hi,
I'm calling a method from a class and I would like to display some text based on whether a true or false value is returned. I haven't included all the code, but this is the important bit.
$newuser = new User($username, $firstname, $lastname, $email, $pass);
$newuser->validate_username_length($username);
If the validate_username_length method returns true, I would like to echo one string and if it's false, I'd like to echo a different one.
Can anyone help me out?
Cheers.
I'm calling a method from a class and I would like to display some text based on whether a true or false value is returned. I haven't included all the code, but this is the important bit.
$newuser = new User($username, $firstname, $lastname, $email, $pass);
$newuser->validate_username_length($username);
If the validate_username_length method returns true, I would like to echo one string and if it's false, I'd like to echo a different one.
Can anyone help me out?
Cheers.