I have a xml with below info;
<item>
<site>Cambodia</site>
<city>Phnom Penh</city>
<code>21000</code >
</item>
I want to get all the info from this xml and input them into array $data, then echo them one by one like this; site = Cambodia; city = Phnom Penh; code = 21000; but i don't know how to do it. Please help me to solve this problem.