xml to object php
$object = json_decode(json_encode(simplexml_load_string($xml)));
xml to object php
$object = json_decode(json_encode(simplexml_load_string($xml)));
php parse xml
$movies = new SimpleXMLElement($xmlstr);
echo $movies->movie[0]->plot;
php object to xml
<?php
$array = array('hello' => 'world', 'good' => 'morning');
$xml = simplexml_load_string("<?xml version='1.0' encoding='utf-8'?><foo />");
foreach ($array as $k=>$v) {
$xml->addChild($k, $v);
}
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us