xml to object php
snippet in php

xml to object php

user2958

$object = json_decode(json_encode(simplexml_load_string($xml)));