View Single Post
Old 07-19-2010, 07:44 PM   #3 (permalink)
danceRobot
The Wanderer
 
Join Date: Jul 2010
Posts: 6
Thanks: 1
danceRobot is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
php Code:
public function cmp_ptl_friends( $x )
{
    if ( in_array( $x['user_id'], $this->buddyList ) )
....

$this->leaderboardStats['data'] = array_filter( $this->leaderboardStats['data'], array( $this, 'cmp_ptl_friends' ) );
aaaahhh.... ok.... this enlightens me! :)
I didnt know that I could use "array($this,'functionName')" as the callback paramenter / I didnt know at all how to call a function of a class as the callback method...!!! I should have asked this in the first place I guess haha...

I will try this out soon, but it already seems you really know what you are talking about and it WILL WORK! :D
danceRobot is offline  
Reply With Quote