O
O
oleg_462015-12-22 17:25:39
Arrays
oleg_46, 2015-12-22 17:25:39

How to form a multidimensional array from a string?

You need to form a multidimensional array from a string
_items_0_deliveryAddress_countryName
, you need to get an array in the form
items[0][deliveryAddress][countryName]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2015-12-22
@SaNNy32

You need to split the string into parts by the separator "_" and use them to access the array

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question