This function has been deprecated. Use astra_get_prop() instead.
astar( array $array, string $prop, string $default = null )
Get a specific property of an array without needing to check if that property exists.
Description
See also
Parameters
- $array
-
(array) (Required) Array from which the property's value should be retrieved.
- $prop
-
(string) (Required) Name of the property to be retrieved.
- $default
-
(string) (Optional) Value that should be returned if the property is not set or empty. Defaults to null.
Default value: null
Return
(null|string|mixed) The value
Source
File: inc/core/deprecated/deprecated-functions.php
function astar( $array, $prop, $default = null ) { return astra_get_prop( $array, $prop, $default ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.5.2 | Introduced. |