Arrays Class
Aurora\Helpers Namespace
Methods
toObject
Recursively convert an array to object
Parameters
-
mixed
$x
— Array
Return Value
object
Signature
public function toObject(mixed $x)
flatten
Flatten an array of arrays/objects keeping only the specified property
Parameters
-
array
$array
— Array of arrays/objects -
string
$prop
— Property name for keeping
Return Value
array
Signature
public function flatten(array $array, string $prop): array