Skip to content

Parse Multidimensional Arrays  #9

Description

@vansari

At the Moment in Issue #5 we can parse only primitive arrays
It would be helpful if we can parse multidimensional arrays.

Test cases:

'Array with subarrays' => [
    'input‘ => '[a,b,c,[123,23,2,[abc,def]], d,e,f]‘,
    'expected‘ => ['a', 'b', 'c', [123, 23, 2, ['abc', 'def']], 'd', 'e', ‚f‘]
],
'Array with subarrays #2' => [
    'input‘ => '[[123,23,2,[abc,def]], a,b,c,d,e,f]‘,
    'expected‘ => [[123, 23, 2, ['abc', 'def']], 'a', 'b', 'c', 'd', 'e', ‚f‘]
],
'Array with subarrays #3' => [
    'input‘ => '[[123,23,2], a,b,c,d,e,f,[abc,def]]‘,
    'expected‘ => [[123, 23, 2], 'a', 'b', 'c', 'd', 'e', 'f', ['abc', 'def‘]]
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions