« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for grapes (0.002 sec.)
例 | PHP 8.3 11251
例 このリファレンスの多くの例で、XMLファイルが必要です。 私たちは、次のような形式の book.xml を使用します。 例1 book.xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-o ... y>Title</entry> <entry>Author</entry> <entry>Language</entry> <entry>ISBN</entry> </row> </thead> <tbody> <row> <entry>The Grapes of Wrath</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>0140186409</entry> </row> <row> <entry>The Pearl</ ...
https://man.mtool.work/php/8.3/dom.examples.html
usort — ユーザー定義の比較関数を使用して、配列を値でソートする | PHP 8.3 11251
usort (PHP 4, PHP 5, PHP 7, PHP 8) usort — ユーザー定義の比較関数を使用して、配列を値でソートする 説明 function usort ( array &$array , callable $callback ): true 順序を決めるユーザー定義の比較関数により、 array をその値でソートします。 注意 ... $b [ "fruit" ]); } $fruits [ 0 ][ "fruit" ] = "lemons" ; $fruits [ 1 ][ "fruit" ] = "apples" ; $fruits [ 2 ][ "fruit" ] = "grapes" ; usort ( $fruits , "cmp" ); foreach ( $fruits as $key => $value ) { echo "\$fruits[ $key ]: " . $value [ "fruit" ] . "\n ... " ; } ?> 上の例の出力は以下となります。 $fruits[0]: apples $fruits[1]: grapes $fruits[2]: lemons 多次元配列をソートする際には、 $a と $b は配列の最初のインデックスへの参照を保持しています。 例3 usort( ...
https://man.mtool.work/php/8.3/function.usort.html
DOMNodelist::item — インデックスで指定したノードを取得する | PHP 8.3 8953
DOMNodelist::item (PHP 5, PHP 7, PHP 8) DOMNodelist::item — インデックスで指定したノードを取得する 説明 public function DOMNodeList::item ( int $index ): DOMElement | DOMNode | DOMNameSpaceNode | null DOMNodeList オブジェクトから、 index で ... ( $items as $item ) { echo $item -> nodeValue . "\n" ; } ?> 上の例の出力は以下となります。 Title Author Language ISBN The Grapes of Wrath John Steinbeck en 0140186409 The Pearl John Steinbeck en 014017737X Samarcande Amine Maalouf fr 2253051209 他のマ ...
https://man.mtool.work/php/8.3/domnodelist.item.html
DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する | PHP... 7813
DOMDocument::xinclude (PHP 5, PHP 7, PHP 8) DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する 説明 public function DOMDocument::xinclude ( int $options = 0 ): int | false このメソッドは、DOMDocument オブジェクト内の ... www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <row xml:base="/home/didou/book.xml"> <entry>The Grapes of Wrath</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>0140186409</entry> </row> <row xml:base="/home/did ...
https://man.mtool.work/php/8.3/domdocument.xinclude.html
DOMXPath::query — 与えられた XPath 式を評価する | PHP 8.3 6655
DOMXPath::query (PHP 5, PHP 7, PHP 8) DOMXPath::query — 与えられた XPath 式を評価する 説明 public function DOMXPath::query ( string $expression , ? DOMNode $contextNode = null , bool $registerNodeNS = true ): mixed 与えられた XPath 式 expre ... ng -> nodeValue } ," . " by { $entry -> previousSibling -> nodeValue } \n" ; } ?> 上の例の出力は以下となります。 Found The Grapes of Wrath, by John Steinbeck Found The Pearl, by John Steinbeck 式を短くするため、 contextNode パラメータを使用することも可 ...
https://man.mtool.work/php/8.3/domxpath.query.html
PREV 1 NEXT