1

I just tried to write this comment:


You could use $arr = explode(' ', $str); to split $str by . Then you could do the same on = to get your key->value pairs.


But it chokes on and formats like so:

marked as duplicate by ale, Mat, AakashM, animuson, Frédéric Hamidi May 8 '13 at 12:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You could use $arr = explode(' ', $str); to split $str by . Then you could do the same on = to get your key->value pairs. – Antony May 8 '13 at 12:46

Browse other questions tagged .