callback is callable, the opposite could not be true. a string --or a closure-- is callable, but the string is not a callback
IMHO callable fits better. Martin Scotta On Tue, Jun 7, 2011 at 4:28 PM, David Zülke <david.zue...@bitextender.com>wrote: > On 07.06.2011, at 21:12, Stas Malyshev wrote: > > > Hi! > > > >> https://wiki.php.net/rfc/callable > > > > Note also that this pseudo-type is called "callback" in all of our > documentation, which means we have now documentation that says: > > > > bool array_walk ( array &$array , callback $funcname [, mixed $userdata ] > ) > > > > and type check that says "callable". > > Oh, good point. It should be "callback" then, too, maybe? Or the > documentation should be adjusted (which might be a good idea, as "$funcname" > doesn't reflect the realities anymore). > > David > >