主页
PHP
PHP getDocNamespaces() 函数
demo_func_simplexml_getdocnamespaces
运行 ❯
×
更改方向
保存代码
更改主题
<?php $xml=<<
Volvo
BMW
Saab
XML; $sxe=new SimpleXMLElement($xml); $ns=$sxe->getDocNamespaces(); print_r($ns); ?>