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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -