update : 2015.11.03
php.shukuma.com검색:
|
simplexml_load_file(PHP 5) simplexml_load_file — Interprets an XML file into an object 설명
SimpleXMLElement simplexml_load_file
( string
$filename
[, string $class_name = "SimpleXMLElement"
[, int $options = 0
[, string $ns = ""
[, bool $is_prefix = false
]]]] )Convert the well-formed XML document in the given file to an object. 인수
반환값
Returns an object of class SimpleXMLElement with
properties containing the data held within the XML document,실패 시 오류/예외
Produces an Tip
Use libxml_use_internal_errors() to suppress all XML errors, and libxml_get_errors() to iterate over them afterwards. 예제
Example #1 Interpret an XML document
<?php This script will display, on success: SimpleXMLElement Object ( [title] => Example Title ... ) At this point, you can go about using $xml->title and any other elements. 참고
|