xml - How to use SimpleXMLElement Object attributes in PHP, yii2? -
i'm trying extract attributes xml file. i'm using simple xml_load_file()
function load xml , saved in variable. when print variable this
simplexmlelement object ( [service_http_path] => https://land-qc.qoda.com [l10] => https://jd10.loda.com [temp_http_preview_path] => https://land.qoda.com/temp_preview_path )
i want use service_http_path
has https://land-qc.qoda.com
. how capture url alone in variable? in advance.
convert object array this
$array= (array) $yourobject;
after can this
$url = $array['service_http_path'];
this should give value.
Comments
Post a Comment