ldb358 Posted September 7, 2009 Share Posted September 7, 2009 all i want to do is use array_walk within my class heres what i have but it returns an undefined function: array_walk($values, '$this->prep'); array_walk($columns, '$this->prep'); also tried with the same return: array_walk($values, 'prep'); array_walk($columns, 'prep'); Link to comment https://forums.phpfreaks.com/topic/173365-solved-using-array_walk-in-a-class/ Share on other sites More sharing options...
RussellReal Posted September 7, 2009 Share Posted September 7, 2009 try array($this,"prep") for your callback.. I think thats the way to do it Link to comment https://forums.phpfreaks.com/topic/173365-solved-using-array_walk-in-a-class/#findComment-913972 Share on other sites More sharing options...
ldb358 Posted September 7, 2009 Author Share Posted September 7, 2009 okay thank you very much it worked Link to comment https://forums.phpfreaks.com/topic/173365-solved-using-array_walk-in-a-class/#findComment-913994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.