Get name of object or class

Get your object’s constructor function and then inspect its name property.

myObj.constructor.name

Returns “myClass”.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)