|
SimpleXMLElement::__construct新しい SimpleXMLElement オブジェクトを作成する 説明
public SimpleXMLElement::__construct(
string $data ,int $options = 0,bool $dataIsURL = false ,string $namespaceOrPrefix = "",bool $isPrefix = false ) 新しい SimpleXMLElement オブジェクトを作成します。 パラメータ
エラー / 例外
XML データ内でエラーが見つかるたびに ヒント
libxml_use_internal_errors ですべての XML エラーを抑制し、 後から libxml_get_errors で取得することもできます。 例
例1 SimpleXMLElement オブジェクトの作成
<?php 上の例の出力は以下となります。 PHP: Behind the Parser
例2 URL からの SimpleXMLElement オブジェクトの作成
<?php 参考
|