Use get_class
to get the class name of an object.
More Related Contents:
- How can I sort arrays and data in PHP?
- How can I access an array/object?
- How to convert an array to object in PHP?
- Sort array of objects by object fields
- Modify array values in foreach loop
- How to find entry by object property from an array of objects?
- Sort array of objects by one property
- mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object
- PHP Objects vs Arrays — Performance comparison while iterating
- Using usort in php with a class private function
- Array to Object and Object to Array in PHP – interesting behaviour
- Array of PHP Objects
- Most efficient way to search for object in an array by a specific property’s value
- Convert result to a array [closed]
- How to convert array to SimpleXML
- List of Big-O for PHP functions
- recursive array_diff()?
- Trying to get property of non-object in [duplicate]
- How to access mysql result set data with a foreach loop
- Best way to transfer an array between PHP and Javascript [duplicate]
- How to skip the 1st key in an array loop?
- How to use php array with sql IN operator? [duplicate]
- How to access a property of an object (stdClass Object) member/element of an array? [duplicate]
- PHP curly braces in array notation
- Explode string into array with no empty elements?
- Group 2d array rows by one column and sum another column [duplicate]
- Merging two arrays with the “+” (array union operator) How does it work?
- Group 2d array data by one column and sum other columns in each group (separately)
- foreach with three variables add
- Split a string with two delimiters into two arrays (explode twice)