Voting

: three minus zero?
(Example: nine)

The Note You're Voting On

eitan at mosenkis dot net
13 years ago
As of PHP 5.3.9, is_a() seems to return false when passed a string for the first argument. Instead, use is_subclass_of() and, if necessary for your purposes, also check if the two arguments are equal, since is_subclass_of('foo', 'foo') will return false, while is_a('foo', 'foo') used to return true.

<< Back to user notes page

To Top