Answer the question
In order to leave comments, you need to log in
How to parse text and convert it to an array?
Hello,
I have this text:
{{
#foo([
'key' => 'value',
'key2' => #bar([
'barKey' => 222,
'barKey2' => #anotherFoo([
'key' => 'value'
])
])
])
}}
[
'widgetName' => 'foo',
'widgetValue' => [
'key' => 'value',
'key2' => [
'widgetName' => 'bar',
'widgetValue' => [
'barKey' => 222,
'barKey2' => [
'widgetName' => 'anotherFoo',
'widgetValue' => [
'key' => 'value'
]
]
]
]
]
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question