05-17-2009, 03:48 PM
|
#1 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
acessing multiple methods....
Is there any way to access multiple methods so you don't have to type the variable you're checking against over and over?
For example, instead of this:
PHP Code:
$val->checkEmpty($username);
$val->checkLength($username);
I want to be able to check for both empty and length in one shot.
So I tried this, but it didn't work.
PHP Code:
$val->checkEmpty->checkLength($username);
|
|
|
|