I have a string (something like var_dump) and need to convert it to an array. I can use explode and str_replace ... but i need to know is there any other or better solution for this issue or not. string is line by line ...
example string:
$myString = "something => somevalue
anotherthing => somevalue
A => B
X => Z";
need to convert to:
$myArray = array(something => somevalue,anotherthing => somevalue,A => B,X => Z");
explode