jaikar Posted March 18, 2007 Share Posted March 18, 2007 Hi phpfreaks !!!!!.... i use a array_filer operation inside a class ... its not working .. its its outside a class as a seperate fuinction its working ... this is the code . class validate { function precheck($val) { if(strtolower($val) != 'submit' && strtolower($val) != 'update') { return $val; } } function filter($arr) { return (array_filter($arr, "$this->precheck")); } } the error says ... $this->precheck is not valid ... i tried with "precheck", "this->precheck", $precheck" nothing helps.... please advice Thanks a lot in advance ... ~J Link to comment https://forums.phpfreaks.com/topic/43253-array_filter-inside-a-class-will-work/ Share on other sites More sharing options...
jaikar Posted March 18, 2007 Author Share Posted March 18, 2007 Hi !.. can anyone please help me on this? Link to comment https://forums.phpfreaks.com/topic/43253-array_filter-inside-a-class-will-work/#findComment-210033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.