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'); Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.