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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -