« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 22 for stuff (0.007 sec.)
SimpleXML 要素に基づき整形式の XML 文字列を返す 11464
« SimpleXMLElement::addChild SimpleXMLElement::attributes » PHP Manual SimpleXMLElement SimpleXML 要素に基づき整形式の XML 文字列を返す 検索 SimpleXMLElement::asXML (PHP 5, PHP 7, PHP 8) SimpleXMLElement::asXML — SimpleXML 要素に基づき整形式 ... ージョン 説明 8.0.0 filename は、nullable になりました。 例 例1 XML を取得する <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); echo $xml -> asXML (); ?> 上の例の出力は以 ... 下となります。 <?xml version="1.0"?> <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> asXML は Xpath の結果にも適用できます: 例2 SimpleXMLElement::xpath() の結果に asXML() を ... 使用する <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); /* <a><b><c>を探す */ $result = $xml -> x ...
https://man.mtool.work/php/8.3/simplexmlelement.asxml.html
SimpleXML 要素に基づき整形式の XML 文字列を返す 11329
« SimpleXMLElement::addChild SimpleXMLElement::attributes » PHP Manual SimpleXMLElement SimpleXML 要素に基づき整形式の XML 文字列を返す 検索 SimpleXMLElement::asXML (PHP 5, PHP 7, PHP 8) SimpleXMLElement::asXML — SimpleXML 要素に基づき整形式 ... ージョン 説明 8.0.0 filename は、nullable になりました。 例 例1 XML を取得する <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); echo $xml -> asXML (); ?> 上の例の出力は以 ... 下となります。 <?xml version="1.0"?> <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> asXML は Xpath の結果にも適用できます: 例2 SimpleXMLElement::xpath() の結果に asXML() を ... 使用する <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); /* <a><b><c>を探す */ $result = $xml -> x ...
https://man.mtool.work/php/8.3/simplexmlelement.asxml.html
XML データに Xpath クエリを実行する 10151
« SimpleXMLElement::valid SimpleXMLIterator » PHP Manual SimpleXMLElement XML データに Xpath クエリを実行する 検索 SimpleXMLElement::xpath (PHP 5, PHP 7, PHP 8) SimpleXMLElement::xpath — XML データに Xpath クエリを実行する 説明 public funct ... た。 これより前のバージョンでは、黙って空の配列を返していました。 例 例1 Xpath <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); /* <a><b><c> を探します */ $result = $xml ... ' ); foreach ( $result as $node ) { echo 'b/c: ' , $node , "\n" ; } ?> 上の例の出力は以下となります。 /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff これら二つの結果は同じであることに注意してください。 参考 SimpleXMLElement::registerXPathNamespace() ... 関連キーワード: SimpleXMLElement xpath XPath Xpath クエリ false result node データ string expression ノード 発生 場合 text stuff xml array null SimpleXML ...
https://man.mtool.work/php/8.3/simplexmlelement.xpath.html
列挙型 / Enum 10016
« オブジェクト リソース » PHP Manual 型 列挙型 / Enum 検索 列挙型 / Enum (PHP 8 >= 8.1.0) 列挙型の基礎 列挙型は、クラスやクラス定数に対して、さらに制限を加えたものです。 ある型に対して、取り得る値の限られた集合を定義する方法を提供します。 < ... ?php enum Suit { case Hearts ; case Diamonds ; case Clubs ; case Spades ; } function do_stuff ( Suit $s ) { // ... } do_stuff ( Suit :: Spades ); ?> 完全な説明は、 列挙型(Enum) を参照ください。 キャスト 列挙型を obje ... 成されます。 それ以外のキャストを行っても、エラーが発生します。 関連キーワード: 列挙型 Enum case キャスト Suit クラス Spades stuff 列挙 name キー 場合 配列 オブジェクト Search リソース 基礎 定数 制限 集合 ...
https://man.mtool.work/php/8.3/language.types.enumerations.html
列挙型 / Enum 10016
« オブジェクト リソース » PHP Manual 型 列挙型 / Enum 検索 列挙型 / Enum (PHP 8 >= 8.1.0) 列挙型の基礎 列挙型は、クラスやクラス定数に対して、さらに制限を加えたものです。 ある型に対して、取り得る値の限られた集合を定義する方法を提供します。 < ... ?php enum Suit { case Hearts ; case Diamonds ; case Clubs ; case Spades ; } function do_stuff ( Suit $s ) { // ... } do_stuff ( Suit :: Spades ); ?> 完全な説明は、 列挙型(Enum) を参照ください。 キャスト 列挙型を obje ... 列が生成されます。 それ以外のキャストを行っても、エラーが発生します。 関連キーワード: 列挙型 Enum case キャスト Suit Spades stuff 列挙 キー リソース 基礎 定数 制限 集合 方法 提供 enum Hearts Diamonds Clubs Pure Backed ...
https://man.mtool.work/php/8.3/language.types.enumerations.html
XML データに Xpath クエリを実行する 10016
« SimpleXMLElement::valid SimpleXMLIterator » PHP Manual SimpleXMLElement XML データに Xpath クエリを実行する 検索 SimpleXMLElement::xpath (PHP 5, PHP 7, PHP 8) SimpleXMLElement::xpath — XML データに Xpath クエリを実行する 説明 public funct ... た。 これより前のバージョンでは、黙って空の配列を返していました。 例 例1 Xpath <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement ( $string ); /* <a><b><c> を探します */ $result = $xml ... ' ); foreach ( $result as $node ) { echo 'b/c: ' , $node , "\n" ; } ?> 上の例の出力は以下となります。 /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff これら二つの結果は同じであることに注意してください。 参考 SimpleXMLElement::registerXPathNamespace() ... 空間を返す 基本的な SimpleXML の使用法 関連キーワード: SimpleXMLElement xpath XPath Xpath クエリ node expression ノード text stuff SimpleXML 集合 foreach ドキュメント 空間 valid SimpleXMLIterator マッチ 論理 数値 履歴 code 相対 参考 registerXPathNamespa ...
https://man.mtool.work/php/8.3/simplexmlelement.xpath.html
The EvIdle class 9494
« EvFork::createStopped EvIdle::__construct » PHP Manual Ev The EvIdle class 検索 The EvIdle class (PECL ev >= 0.2.0) はじめに EvIdle watchers trigger events when no other events of the same or higher priority are pending ( EvPrepare , EvCh ... t loop iteration - until stopped, that is, or the process receives more events and becomes busy again with higher priority stuff. Apart from keeping the process non-blocking(which is a useful on its own sometimes), EvIdle watchers are a good place to ... do "pseudo-background processing" , or delay processing stuff to after the event loop has handled all outstanding events. The most noticeable effect is that as long as any idle watcher ... Watcher priority watchers events process createStopped construct higher pending callback long busy idle event loop stopped stuff processing 継承 callable mixed revents watcher EvFork ...
https://man.mtool.work/php/8.3/class.evidle.html
FAQ: 名前空間について知っておくべきこと 9359
« 名前解決のルール 列挙型(Enum) » PHP Manual 名前空間 FAQ: 名前空間について知っておくべきこと 検索 FAQ: 名前空間について知っておくべきこと (PHP 5 >= 5.3.0, PHP 7, PHP 8) この FAQ は 2 つに分かれています。一般的な質問と、 深く理解するために有 ... で定義されているクラスと衝突してはいけない 次のようなスクリプトの組み合わせは、正当なものです。 file1.php <?php namespace my\stuff ; class MyClass {} another.php <?php namespace another ; class thing {} file2.php <?php namespace my\stuff ; include 'file ... MyClass ; $a = new MyClass ; // 名前空間 another のクラス "thing" のインスタンスを作成します。 MyClass クラスが名前空間 my\stuff にあるとはいえ、名前の衝突はありません。 MyClass の定義は別のファイルにあるからです。 しかし、次の例は名前の衝突による致命 ... 的なエラーとなります。 MyClass の定義が同じファイル上の use 文で行われているからです。 <?php namespace my\stuff ; use another\thing as MyClass ; class MyClass {} // fatal error: MyClass conflicts with import statement $a = new MyClass ...
https://man.mtool.work/php/8.3/language.namespaces.faq.html
RecursiveDirectoryIterator を作成する 9107
« RecursiveDirectoryIterator RecursiveDirectoryIterator::getChildren » PHP Manual RecursiveDirectoryIterator RecursiveDirectoryIterator を作成する 検索 RecursiveDirectoryIterator::__construct (PHP 5 >= 5.1.2, PHP 7, PHP 8) RecursiveDirector ... の出力は、 たとえば以下のようになります。 SubPathName: fruit/apple.xml SubPath: fruit Key: /tmp/fruit/apple.xml SubPathName: stuff.xml SubPath: Key: /tmp/stuff.xml SubPathName: veggies/carrot.xml SubPath: veggies Key: /tmp/veggies/carrot.xml 参考 Filesy ... ilesystemIterator construct SubPathName SubPath フラグ RecursiveIteratorIterator fruit veggies flags 定数 ValueError apple stuff carrot getChildren 反復 setFlags UnexpectedValueException 履歴 スロー RuntimeException rewind while ...
https://man.mtool.work/php/8.3/recursivedirectoryiterator.construct.html
FAQ: 名前空間について知っておくべきこと 8838
« 名前解決のルール 列挙型(Enum) » PHP Manual 名前空間 FAQ: 名前空間について知っておくべきこと 検索 FAQ: 名前空間について知っておくべきこと (PHP 5 >= 5.3.0, PHP 7, PHP 8) この FAQ は 2 つに分かれています。一般的な質問と、 深く理解するために有 ... で定義されているクラスと衝突してはいけない 次のようなスクリプトの組み合わせは、正当なものです。 file1.php <?php namespace my\stuff ; class MyClass {} another.php <?php namespace another ; class thing {} file2.php <?php namespace my\stuff ; include 'file ... MyClass ; $a = new MyClass ; // 名前空間 another のクラス "thing" のインスタンスを作成します。 MyClass クラスが名前空間 my\stuff にあるとはいえ、名前の衝突はありません。 MyClass の定義は別のファイルにあるからです。 しかし、次の例は名前の衝突による致命 ... 的なエラーとなります。 MyClass の定義が同じファイル上の use 文で行われているからです。 <?php namespace my\stuff ; use another\thing as MyClass ; class MyClass {} // fatal error: MyClass conflicts with import statement $a = new MyClass ...
https://man.mtool.work/php/8.3/language.namespaces.faq.html
PREV 1 2 3 NEXT