Function __global->property_exists
Definitions
sources_custom/phpstub.php
- Checks if the class property exists.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $object | object | No | No | required parameter | N/A | N/A | Object of the class we want to check |
| $property_name | string | No | No | required parameter | N/A | N/A | The property name |
Returns
- Whether the class property exists
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Checks if the class property exists.
*
* @param object $object Object of the class we want to check
* @param string $property_name The property name
* @return boolean Whether the class property exists
*/
function property_exists(object $object, string $property_name) : bool
* Checks if the class property exists.
*
* @param object $object Object of the class we want to check
* @param string $property_name The property name
* @return boolean Whether the class property exists
*/
function property_exists(object $object, string $property_name) : bool

