I have an array.
Array
(
[0] => min_order_level="5"
[1] => max_order_level="10"
[2] => step_order_level="4"
[3] => product_box="9"
)
What I need is
Array
(
[min_order_level] => "5"
[max_order_level] => "10"
[step_order_level] => "4"
[product_box] => "9"
)
I have an idea of doing this using foreach. But without foreach is there any way to do this.
Thanks!
=and the number. The OP wants to use the string part as the key and the number (with the quotes) after that as the value.5or string value"5"(with qoutas)?5which is integer.