> -----Original Message-----
> From: Vidyut Luther [mailto:[EMAIL PROTECTED]]
> Sent: 28 February 2002 01:27
> 
> but when i do. 
> 
> 
> array_walk ($fieldname, '$check->is_allletters');
> 
> I get the error. 
> Warning: Unable to call $check->is_allletters() - function does not
> exist . 

RTFM: http://www.php.net/manual/en/function.array-walk.php, right near the beginning, 
contains the following:

  > Note: Instead of a function name, an array containing an object
  > reference and a method name can also be supplied.

So you want:
    array_walk ($fieldname, array($check,'is_allletters');

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to