A::keyBy()
Takes an array and makes it associative by an argument.
Parameters
Name | Type | Default |
---|---|---|
$array * | array |
– |
$keyBy * | callable |string |
– |
Return type
array
Takes an array and makes it associative by an argument.
Name | Type | Default |
---|---|---|
$array * | array |
– |
$keyBy * | callable |string |
– |
array