update : 2015.11.03
php.shukuma.com검색:
|
SimpleXMLElement::attributes(PHP 5 >= 5.0.1) SimpleXMLElement::attributes — Identifies an element's attributes 설명
public SimpleXMLElement SimpleXMLElement::attributes
([ string
$ns = NULL
[, bool $is_prefix = false
]] )This function provides the attributes and values defined within an xml tag.
인수
반환값Returns a SimpleXMLElement object that can be iterated over to loop through the attributes on the tag.
Returns 예제
Example #1 Interpret an XML string
<?php 위 예제의 출력: name="one" game="lonely" |