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
If you need to call a static method without instantiating the class you could do so:
// since PHP 5.3 array_walk($fieldsArray, 'self::test_print');
Or from outside:
// since PHP 5.5 array_walk($fieldsArray, User::class.'::test_print');