Results of 1 - 10 of about 43 for nodeValue (0.002 sec.)
- DOMXPath::query — 与えられた XPath 式を評価する | PHP 8.3 12679
- 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
... $xpath -> query ( $query ); foreach ( $entries as $entry ) { echo "Found { $entry -> previousSibling -> previousSibling -> nodeValue } ," . " by { $entry -> previousSibling -> nodeValue } \n" ; } ?> 上の例の出力は以下となります。 Found The Grapes of Wrath ... query ( $query , $tbody ); foreach ( $entries as $entry ) { echo "Found { $entry -> previousSibling -> previousSibling -> nodeValue } ," . " by { $entry -> previousSibling -> nodeValue } \n" ; } ?> 参考 DOMXPath::evaluate() - 与えられた XPath 式を評価し、 ...
-
https://man.mtool.work/php/8.3/domxpath.query.html
- DOMNodelist::item — インデックスで指定したノードを取得する | PHP 8.3 12417
- DOMNodelist::item (PHP 5, PHP 7, PHP 8) DOMNodelist::item — インデックスで指定したノードを取得する 説明 public function DOMNodeList::item ( int $index ): DOMElement | DOMNode | DOMNameSpaceNode | null DOMNodeList オブジェクトから、 index で
... s = $doc -> getElementsByTagName ( 'entry' ); for ( $i = 0 ; $i < $items -> length ; $i ++) { echo $items -> item ( $i )-> nodeValue . "\n" ; } ?> 例2 配列構文で要素にアクセスする <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ) ... ; $items = $doc -> getElementsByTagName ( 'entry' ); for ( $i = 0 ; $i < $items -> length ; $i ++) { echo $items [ $i ]-> nodeValue . "\n" ; } ?> 例3 foreach でアイテムを走査する <?php $doc = new DOMDocument ; $doc -> load ( 'examples/book-docbook.xml' ) ... ; $items = $doc -> getElementsByTagName ( 'entry' ); foreach ( $items as $item ) { echo $item -> nodeValue . "\n" ; } ?> 上の例の出力は以下となります。 Title Author Language ISBN The Grapes of Wrath John Steinbeck en 0140186409 T ...
-
https://man.mtool.work/php/8.3/domnodelist.item.html
- DOMXPath::registerPhpFunctions — PHP の関数を XPath 関数として登録する | PHP 8.... 11384
- DOMXPath::registerPhpFunctions (PHP 5 >= 5.3.0, PHP 7, PHP 8) DOMXPath::registerPhpFunctions — PHP の関数を XPath 関数として登録する 説明 public function DOMXPath::registerPhpFunctions ( string | array | null $restrict = null ): void このメ
... starting with 'PHP':\n" ; foreach ( $nodes as $node ) { $title = $node -> getElementsByTagName ( "title" )-> item ( 0 )-> nodeValue ; $author = $node -> getElementsByTagName ( "author" )-> item ( 0 )-> nodeValue ; echo " $title by $author \n" ; } ?> 上の ... ks with multiple authors:\n" ; foreach ( $books as $book ) { echo $book -> getElementsByTagName ( "title" )-> item ( 0 )-> nodeValue . "\n" ; } ?> 上の例の出力は、 たとえば以下のようになります。 Books with multiple authors: PHP Basics 例4 DOMXPath::regist ... ks with multiple authors:\n" ; foreach ( $books as $book ) { echo $book -> getElementsByTagName ( "title" )-> item ( 0 )-> nodeValue . "\n" ; } ?> 上の例の出力は、 たとえば以下のようになります。 Books with multiple authors: PHP Basics 参考 DOMXPath::regis ...
-
https://man.mtool.work/php/8.3/domxpath.registerphpfunctions.html
- Zookeeper::addAuth — Specify application credentials | PHP 8.3 10350
- Zookeeper::addAuth (PECL zookeeper >= 0.1.0) Zookeeper::addAuth — Specify application credentials 説明 public function Zookeeper::addAuth ( string $scheme , string $cert , callable $completion_cb = null ): bool The application calls this fu
... , this method emits ZookeeperException and its derivatives. 例 例1 Zookeeper::addAuth() example Add auth before requesting node value. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $path = '/path/to/node' ; $value = 'nodevalue' ; $zookeeper -> se ... ser0:passwd0' ); $r = $zookeeper -> get ( $path ); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 nodevalue 参考 Zookeeper::create() - Create a node synchronously Zookeeper::setAcl() - Sets the acl associated with a node synchrono ...
-
https://man.mtool.work/php/8.3/zookeeper.addauth.html
- DOMNameSpaceNode クラス | PHP 8.3 10088
- DOMNameSpaceNode クラス (PHP 5, PHP 7, PHP 8) クラス概要 class DOMNameSpaceNode { /* プロパティ */ public readonly string $ nodeName ; public readonly ? string $ nodeValue ; public readonly int $ nodeType ; public readonly string $ prefix ;
... * メソッド */ public function __sleep (): array public function __wakeup (): void } プロパティ nodeName このノードの修飾名 nodeValue このノードが宣言している名前空間URI。 名前空間が空の場合は、 null nodeType ノードのタイプ。 XML_NAMESPACE_DECL_NODE になり ...
-
https://man.mtool.work/php/8.3/class.domnamespacenode.html
- Zookeeper::get — Gets the data associated with a node synchronously | PHP 8.3 10088
- Zookeeper::get (PECL zookeeper >= 0.1.0) Zookeeper::get — Gets the data associated with a node synchronously 説明 public function Zookeeper::get ( string $path , callable $watcher_cb = null , array &$stat = null , int $max_size = 0 ): strin
... () example Get value from node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $path = '/path/to/node' ; $value = 'nodevalue' ; $zookeeper -> set ( $path , $value ); $r = $zookeeper -> get ( $path ); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例 ... の出力は以下となります。 nodevalue 例2 Zookeeper::get() stat example Get node stat info. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $path = '/pat ...
-
https://man.mtool.work/php/8.3/zookeeper.get.html
- DOMXPath::registerPhpFunctionNS — PHP の関数を、名前空間付きの XPath 関数として... 9054
- DOMXPath::registerPhpFunctionNS (PHP >= 8.4.0) DOMXPath::registerPhpFunctionNS — PHP の関数を、名前空間付きの XPath 関数として登録する 説明 public function DOMXPath::registerPhpFunctionNS ( string $namespaceURI , string $name , callable $ca
... starting with 'PHP':\n" ; foreach ( $nodes as $node ) { $title = $node -> getElementsByTagName ( "title" )-> item ( 0 )-> nodeValue ; $author = $node -> getElementsByTagName ( "author" )-> item ( 0 )-> nodeValue ; echo " $title by $author \n" ; } ?> 上の ...
-
https://man.mtool.work/php/8.3/domxpath.registerphpfunctionns.html
- Dom\Node クラス | PHP 8.3 8545
- Dom\Node クラス (PHP 8 >= 8.4.0) はじめに このクラスは、 DOMNode と同等ですが、 モダンかつ仕様に準拠しています。 クラス概要 class Dom\Node { /* 定数 */ public const int DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int DOCUMENT_POSITI
... $ lastChild ; public readonly ? Dom\Node $ previousSibling ; public readonly ? Dom\Node $ nextSibling ; public ? string $ nodeValue ; public ? string $ textContent ; /* メソッド */ /* Not documented yet */ } 定義済み定数 DOMNode::DOCUMENT_POSITION_DISCON ... このノードの直前のノード。存在しない場合は null を返す nextSibling このノードの直後のノード。存在しない場合は null を返す nodeValue このノードの値。タイプによって変わります。 textContent このノードとその子孫ノードのテキスト 注意 注意 : DOM拡張モジュールは ...
-
https://man.mtool.work/php/8.3/class.dom-node.html
- Dom\EntityReference クラス | PHP 8.3 7774
- Dom\EntityReference クラス (PHP 8 >= 8.4.0) はじめに このクラスは、 DOMEntityReference と同等ですが、 モダンかつ仕様に準拠しています。 クラス概要 class Dom\EntityReference extends Dom\Node { /* 継承した定数 */ public const int Dom\Node::DOC
... $ lastChild ; public readonly ? Dom\Node $ previousSibling ; public readonly ? Dom\Node $ nextSibling ; public ? string $ nodeValue ; public ? string $ textContent ; /* 継承したメソッド */ /* Not documented yet */ } 他のマニュアルの関連ページ Docker この ...
-
https://man.mtool.work/php/8.3/class.dom-entityreference.html
- Dom\Notation クラス | PHP 8.3 7774
- Dom\Notation クラス (PHP 8 >= 8.4.0) クラス概要 class Dom\Notation extends Dom\Node { /* 継承した定数 */ public const int Dom\Node::DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int Dom\Node::DOCUMENT_POSITION_PRECEDING = 0x2 ; public
... $ lastChild ; public readonly ? Dom\Node $ previousSibling ; public readonly ? Dom\Node $ nextSibling ; public ? string $ nodeValue ; public ? string $ textContent ; /* 継承したメソッド */ /* Not documented yet */ } プロパティ publicId 記法に関連付けられ ...
-
https://man.mtool.work/php/8.3/class.dom-notation.html