keys.php
Table of Contents
Functions
- keys() : array<int, string>
- Returns the list of public property names of an object.
Functions
keys()
Returns the list of public property names of an object.
keys(object $object) : array<int, string>
Only the accessible (public and dynamic) properties are returned, in declaration order, mirroring the behaviour of get_object_vars() from outside the class.
Parameters
- $object : object
-
The source object.
Tags
Return values
array<int, string> —A list of the object's public property names.