Php Laravel XML an JSON

$xml = simplexml_load_string($xml_string);
$json = json_encode($xml);
$array = json_decode($json, TRUE);

# Attributes are stored in the array under the @attributes key
MatrixZA