07-19-2010, 07:44 PM
|
#3 (permalink)
|
|
The Wanderer
Join Date: Jul 2010
Posts: 6
Thanks: 1
|
Quote:
Originally Posted by delayedinsanity
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
|
|
|
|