View Single Post
Old 05-17-2009, 03:48 PM   #1 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default 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); 
allworknoplay is offline  
Reply With Quote