Less than 1 minute
array_to_dot_notation
Convert to dot notation.
public array_to_dot_notation({Array})
Converts/reduces a multidimensional array into a single dimensional array with keys in dot-notation.
Parameters
Parameter | Type | Description |
---|---|---|
$array | array | the array to convert |
$separator | string | The separater to use between keys. Defaults to '.', hence the name of the functions. |
$depth | int | Limit to the specified depth. Starting at 1, this is the number of levels to return. |
Essentially, this is the number of dots, plus one. |
| $numericArraySeparators
| string
| This parameter is used to display numeric arrays. It defaults to '[]' which means that numeric arrays will appear as "item[index].key". This argument must be at least two characters. The first character is the left side and the second character is the right side. Any non-string values or string values less than 2 characters long will be ignored and numeric arrays will not be used. To disable numeric arrays and cause elements with a numeric key to be output the same as other string key elements, simply set this to NULL. |
Generated by Hazaar API Doc Generator