Onetastic Macro Documentation >
>
>
Array_FromKeysAndValues Array_FromKeysAndValues
Creates an array by using one array for keys and another for its values. The given arrays must have the same size.
Syntax
Array Array_FromKeysAndValues(
Array keys,
Array values)
Parameters
- Array keys
- Keys to use for the array. Must contain only numeric or string values.
- Array values
- Values to use for the array.
Examples
$keys = Array("color", "size", "type")
$values = Array("red", "large", "t-shirt")
$array = Array_FromKeysAndValues($keys, $values)
|