I have a problem with converting chars from a text file to a key value array. It ignore the spaces.
My text is like this:
type="lorem" template="lorem_ipsum.phtml" key1="lorem Ipsum" key2="lorem Ipsum" key2="lorem Ipsum"
The problem appears near the separator in my preg_match code, I lose the seconds words in key1 or key´2 values!
preg_match_all("/([^,= ]+)=([^,= ]+)/", $line_Content, $r);
$myarray = array_combine($r[1], str_replace('" ','',$r[2]));
Help!