I have a string like this:
<enq fiscal="no" lastcommanderror="no" intransaction="no" lasttransactioncorrect="yes" />
I want to convert the above string into an array, and the output has to be this:
array(
['fiskal'] => "no",
['lastcommanderror'] => "no",
['intransaction'] => "no",
['lasttransactioncorrect'] => "yes"
)