# Describe what instance of a class a PHP object is?

**URL:** <https://forum.kirupa.com/t/describe-what-instance-of-a-class-a-php-object-is/299432>\
**Category:** programming\
**Created:** [November 5, 2009, 12:19am UTC](https://forum.kirupa.com/t/describe-what-instance-of-a-class-a-php-object-is/299432 "2009-11-05T00:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [November 5, 2009, 12:19am UTC](https://forum.kirupa.com/t/describe-what-instance-of-a-class-a-php-object-is/299432/1 "2009-11-05T00:19:56Z")

</div>

PHP isn’t my strong point. I have more of an AS3 background. Personally, I hate how untyped PHP is. :td:

Does anyone know if there is any way to output, either as a String or a class object what class an object passed in belongs to?

AS3 has object.constructor or describeType(object)
