<?php namespace App { class Util { public function getGenres(){} } class A { public function notCallable() { return \is_callable(['Util', 'getGenres']); } public function isCallable() { return \is_callable(['App\Util', 'getGenres']); } } } namespace B { $a = new \App\A(); \var_dump($a->notCallable()); \var_dump($a->isCallable()); }
You have javascript disabled. You will not be able to edit any code.