Less than 1 minute
replace_property
Replaces a property in an object at key with another value.
public replace_property({Array})
This allows a property in am object to be replaced. Normally this would not be difficult, unless the target property is an nth level deep object. This function allows that property to be targeted with a key name in dot-notation.
Parameters
Parameter | Type | Description |
---|---|---|
$target | stdClass | The target in which the property will be replaced |
$key | string | A key in either an array or dot-notation |
$value | mixed | The value that will be used as the replacement |
Generated by Hazaar API Doc Generator