|
PHP5中文手册
SimpleXMLElement->__construct()(No version information available, might be only in CVS) SimpleXMLElement->__construct() — Creates a new SimpleXMLElement object 说明SimpleXMLElement
__construct
( string $data
[, int $options
[, bool $data_is_url
[, string $ns
[, bool $is_prefix
]]]] )
Creates a new SimpleXMLElement object. 参数
返回值Returns a SimpleXMLElement object representing data . 错误/异常Produces an E_WARNING error message for each error found in the XML data and throws an exception if errors were detected. 范例
Example#1 Create a SimpleXMLElement object
<?php
Example#2 Create a SimpleXMLElement object from a URL
<?php |