On Tue, 22 Jan 2019 at 21:48, Stephen Reay <php-li...@koalephant.com> wrote:

>
> > On 23 Jan 2019, at 03:34, Girgias <george.bany...@gmail.com> wrote:
> > Classes/Objects functions:
> >
> >   - is_a (use instanceof operator)
> >   - is_subclass_of (not exactly what it's purpose is but the instanceof
> >   operator SHOULD be a valid equivalence with another condition if the
> same
> >   class must not be used)
>
> is_subclass_of allows checking string class names, instanceof (AFAIK) does
> not.
>

Good catch, just checked and it's indead the case that instanceof can't
check string class names:
https://3v4l.org/DkMC4

George P. Banyard

Reply via email to