get_object_vars

PHP 4, PHP 5, PHP 7, PHP 8
get_object_vars - Gets the properties of the given object
Manual
Code Examples

get_object_vars( object$object ): array

Gets the accessible non-static properties of the given object according to scope.

Parameters

object

An object instance.

Return Values

Returns an associative array of defined object accessible non-static properties for the specified object in scope.

Related Functions

Example of get_object_vars

Show all examples for get_object_vars

PHP Version:


Function get_object_vars:

Class/Object Information Functions

Most used PHP functions