If I use array_walk inside a class function to call another function of the same class
array_walk
class user { public function getUserFields($userIdsArr
To call a class method as a callback function in another class method, you should do :
public function compareFucntion() { } public function useCompareFunction() { usort($arrayToSort, [$this, 'compareFucntion']) }