PHPチュートリアル

PHPホーム PHPイントロ PHPインストール PHP構文 PHPコメント PHP変数 PHPエコー/印刷 PHPデータ型 PHP文字列 PHP番号 PHP数学 PHP定数 PHP演算子 PHP If ... Else ... Elseif PHPスイッチ PHPループ PHP関数 PHP配列 PHPスーパーグローバル PHP正規表現

PHPフォーム

PHPフォーム処理 PHPフォームの検証 PHPフォームが必要 PHPフォームのURL / Eメール PHPフォームの完了

PHP Advanced

PHPの日付と時刻 PHPインクルード PHPファイルの処理 PHPファイルのオープン/読み取り PHPファイルの作成/書き込み PHPファイルのアップロード PHPクッキー PHPセッション PHPフィルター PHPフィルターアドバンスト PHPコールバック関数 PHP JSON PHPの例外

PHPOOP _

PHPOOPとは PHPクラス/オブジェクト PHPコンストラクター PHPデストラクタ PHPアクセス修飾子 PHPの継承 PHP定数 PHP抽象クラス PHPインターフェース PHPの特性 PHP静的メソッド PHPの静的プロパティ PHP名前空間 PHPIterables

MySQLデータベース

MySQLデータベース MySQLコネクト MySQL Create DB MySQLテーブルの作成 MySQLの挿入データ MySQLは最後のIDを取得します MySQL Insert Multiple MySQLを準備しました MySQL Select Data MySQL Where MySQL Order By MySQLデータの削除 MySQLアップデートデータ MySQL制限データ

PHP XML

PHPXMLパーサー PHPSimpleXMLパーサー PHPSimpleXML-取得 PHP XMLExpat PHP XML DOM

PHP -AJAX

AJAXイントロ AJAX PHP AJAXデータベース AJAX XML AJAXライブ検索 AJAXポール

PHPの

PHPの例 PHPコンパイラ PHPクイズ PHP演習 PHP証明書

PHPリファレンス

PHPの概要 PHP配列 PHPカレンダー PHPの日付 PHPディレクトリ PHPエラー PHP例外 PHPファイルシステム PHPフィルター PHP FTP PHP JSON PHPキーワード PHP Libxml PHPメール PHP数学 PHPその他 PHP MySQLi PHPネットワーク PHP出力制御 PHP正規表現 PHP SimpleXML PHPストリーム PHP文字列 PHP変数の処理 PHPXMLパーサー PHP Zip PHPタイムゾーン

PHPSimpleXML関数_


PHPSimpleXMLの紹介

SimpleXMLは、XMLデータを簡単に操作および取得できるようにする拡張機能です。

SimpleXMLは、XMLドキュメントの構造またはレイアウトを知っている場合に、要素の名前、属性、およびテキストコンテンツを取得する簡単な方法を提供します。

SimpleXMLは、XMLドキュメントを、配列やオブジェクトのコレクションのように反復できるデータ構造に変換します。


インストール

PHP 5以降、SimpleXML関数はPHPコアの一部です。これらの機能を使用するためにインストールは必要ありません。


PHPSimpleXML関数

Function Description
__construct() Creates a new SimpleXMLElement object
__toString() Returns the string content of an element
addAttribute() Appends an attribute to the SimpleXML element
addChild() Appends a child element the SimpleXML element
asXML() Returns a well-formed XML string (XML version 1.0) from a SimpleXML object
attributes() Returns the attributes/values of an element
children() Returns the children of a specified node
count() Counts the children of a specified node
getDocNamespaces() Returns the namespaces declared in document
getName() Returns the name of an element
getNamespaces() Returns the namespaces used in document
registerXPathNamespace() Creates a namespace context for the next XPath query
saveXML() Alias of asXML()
simplexml_import_dom() Returns a SimpleXMLElement object from a DOM node
simplexml_load_file() Converts an XML document to an object
simplexml_load_string() Converts an XML string to an object
xpath() Runs an XPath query on XML data

PHPSimpleXML反復関数

Function Description
current() Returns the current element
getChildren() Returns the child elements of the current element
hasChildren() Checks whether the current element has children
key() Returns the XML tag name of the current element
next() Moves to the next element
rewind() Rewinds to the first element
valid() Checks whether the current element is valid