Help with Array Walk

From: Date: Thu, 28 Feb 2002 01:27:15 +0000
Subject: Help with Array Walk
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-86501@lists.php.net to get a copy of this message
Hello, I have a question regarding array_walk.. I couldn't find any help on the website or on irc.. didn't know where else to look. I want to call a method in an object(class) , I can't seem to get it to work. the name of the array is $fieldname, when I run $check->is_alllletters($textfield); it works fine 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 . I'm stumped, and about to just copy the function on top of this script to make it work.. any ideas from anyone else ?. Maybe it's something stupid that I'm doing.. but I can't figure it out.

« previous php.general (#86501) next »