I want to convert this string:
<5> 20825.24 </ 5> <7> 0.0 </ 7> <8> 0.0 </ 8>
to an array with key value
I would really appreciate the help
I tried different xmlParse strategies but it is not exactly an xml.
$xml = new \SimpleXMLElement("<5>20825.24</5><7>0.0</ 7><8>0.0</8>");
Response: String could not be parsed as XML
I expect an array like this:
[5=>20825.24,7=>0.0,8=>0.0]