View Source PhpAssocMap.Exploder (PhpAssocMap v2.0.1)
Summary
Functions
Indents the whole associative array using either tabs or spaces. Defaults to 2 spaces.
Functions
Indents the whole associative array using either tabs or spaces. Defaults to 2 spaces.
Use explode/2 to specify identation.
Exemples
iex> PhpAssocMap.Exploder.explode("['key'=>['next'=>'value']]")
"[
'key'=>[
'next'=>'value'
]
]"
iex> PhpAssocMap.Exploder.explode("['key'=>['next'=>'value']]", {:tabs})
"[
'key'=>[
'next'=>'value'
]
]"
iex> PhpAssocMap.Exploder.explode("['key'=>['next'=>'value']]", {:spaces, 1})
"[
'key'=>[ 'next'=>'value' ] ]"