« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 187 for collection (0.001 sec.)
Collection クラス | PHP 8.3 9673
Collection クラス (PECL mysql-xdevapi >= 8.0.11) はじめに クラス概要 class mysql_xdevapi\Collection implements mysql_xdevapi\SchemaObject { /* プロパティ */ public $ name ; /* メソッド */ public function add ( mixed $document ): mysql_xdeva ... pi\CollectionAdd public function addOrReplaceOne ( string $id , string $doc ): mysql_xdevapi\Result public function count (): int public ... ame ): bool public function existsInDatabase (): bool public function find ( string $search_condition = ? ): mysql_xdevapi\CollectionFind public function getName (): string public function getOne ( string $id ): Document public function getSchema (): Schem ... a Object public function getSession (): Session public function modify ( string $search_condition ): mysql_xdevapi\CollectionModify public function remove ( string $search_condition ): mysql_xdevapi\CollectionRemove public function removeOne ( stri ...
https://man.mtool.work/php/8.3/class.mysql-xdevapi-collection.html
The Collection interface | PHP 8.3 9443
The Collection interface (PECL ds >= 1.0.0) はじめに Collection is the base interface which covers functionality common to all the data structures in this library. It guarantees that all structures are traversable, countable, and can be con ... verted to json using json_encode() . インターフェイス概要 interface Ds\Collection extends Countable , IteratorAggregate , JsonSerializable { /* メソッド */ public function clear (): void public function c ... opy (): Ds\Collection public function isEmpty (): bool public function toArray (): array /* 継承したメソッド */ public function Countable::count ... terator (): Traversable public function JsonSerializable::jsonSerialize (): mixed } 変更履歴 バージョン 説明 PECL ds 1.4.0 Collection implements IteratorAggregate now instead of just Traversable . (This change came to the polyfill in 1.4.1.) 目次 Ds\Collec ...
https://man.mtool.work/php/8.3/class.ds-collection.html
Ds\Collection::toArray — Converts the collection to an array | PHP 8.3 9169
Ds\Collection::toArray (PECL ds >= 1.0.0) Ds\Collection::toArray — Converts the collection to an array 説明 public function Ds\Collection::toArray (): array Converts the collection to an array . 注意 : Casting to an array is not supported y ... et. パラメータ この関数にはパラメータはありません。 戻り値 An array containing all the values in the same order as the collection. 例 例1 Ds\Collection::toArray() example <?php $collection = new \Ds\Vector ([ 1 , 2 , 3 ]); var_dump ( $collection -> toA ...
https://man.mtool.work/php/8.3/ds-collection.toarray.html
Ds\Collection::clear — Removes all values | PHP 8.3 9136
Ds\Collection::clear (PECL ds >= 1.0.0) Ds\Collection::clear — Removes all values 説明 public function Ds\Collection::clear (): void Removes all values from the collection. パラメータ この関数にはパラメータはありません。 戻り値 値を返しませ ... ん。 例 例1 Ds\Collection::clear() example <?php $collection = new \Ds\Vector ([ 1 , 2 , 3 ]); print_r ( $collection ); $collection -> clear (); pri ... nt_r ( $collection ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Vector Object ( ) ... 他のマニュアルの関連ページ Linux JM uuid_clear(3) Python collections.abc DuckDB Execution Format ...
https://man.mtool.work/php/8.3/ds-collection.clear.html
collection.xml および collection.xsl ファイルの例 | PHP 8.3 8708
collection.xml および collection.xsl ファイルの例 このリファレンスにある多くの例は、XML ファイルと XSL ファイルの両方が必要です。 例では、以下の内容を含む collection.xml と collection.xsl を使用します。 例1 collection.xml <collection> <cd> ... ist> <year>1995</year> </cd> <cd> <title>Electric Ladyland</title> <artist>Jimi Hendrix</artist> <year>1997</year> </cd> </collection> 例2 collection.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="owner ... " select="'Nicolas Eliaszewicz'"/> <xsl:output method="html" encoding="iso-8859-1" indent="no"/> <xsl:template match="collection"> Hey! Welcome to <xsl:value-of select="$owner"/>'s sweet CD collection! <xsl:apply-templates/> </xsl:template> <xsl:templ ...
https://man.mtool.work/php/8.3/xsl.examples-collection.html
Ds\Collection::copy — Returns a shallow copy of the collection | PHP 8.3 8390
Ds\Collection::copy (PECL ds >= 1.0.0) Ds\Collection::copy — Returns a shallow copy of the collection 説明 public function Ds\Collection::copy (): Ds\Collection Returns a shallow copy of the collection. パラメータ この関数にはパラメータはあ ... りません。 戻り値 Returns a shallow copy of the collection. 例 例1 Ds\Collection::copy() example <?php $a = new \Ds\Vector ([ 1 , 2 , 3 ]); $b = $a -> copy (); $b -> push ( 4 ); pri ...
https://man.mtool.work/php/8.3/ds-collection.copy.html
Ds\Collection::isEmpty — Returns whether the collection is empty | PHP 8.3 8237
Ds\Collection::isEmpty (PECL ds >= 1.0.0) Ds\Collection::isEmpty — Returns whether the collection is empty 説明 public function Ds\Collection::isEmpty (): bool Returns whether the collection is empty. パラメータ この関数にはパラメータはあり ... ません。 戻り値 Returns true if the collection is empty, false otherwise. 例 例1 Ds\Collection::isEmpty() example <?php $a = new \Ds\Vector ([ 1 , 2 , 3 ]); $b = new \Ds ...
https://man.mtool.work/php/8.3/ds-collection.isempty.html
Collection::find — ドキュメントを検索する | PHP 8.3 7886
Collection::find (No version information available, might only be in Git) Collection::find — ドキュメントを検索する 説明 public function mysql_xdevapi\Collection::find ( string $search_condition = ? ): mysql_xdevapi\CollectionFind ドキュメン ... トが属するデータベースコレクションやドキュメントの集合を検索します。 見つかったドキュメントは CollectionFind オブジェクトとして返され、 後の変更や結果の取得に使えます。 パラメータ search_condition オプションですが、通常はドキュ ... ィールドが空)場合、find('true') が与えられたと見做されます。 戻り値 操作を検証したり、見つかったドキュメントを取得するための CollectionFind オブジェクト 例 例1 mysql_xdevapi\Collection::find() の例 <?php $session = mysql_xdevapi\getSession ( "mysqlx://user:p ... te (); $session -> sql ( "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); $collection -> add ( '{"name": "Alfred", "age": 18, "job": "Butler"}' )-> exec ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.find.html
Collection::remove — コレクションを削除する | PHP 8.3 7765
Collection::remove (No version information available, might only be in Git) Collection::remove — コレクションを削除する 説明 public function mysql_xdevapi\Collection::remove ( string $search_condition ): mysql_xdevapi\CollectionRemove 特定の ... ove オブジェクトを返します。 削除操作が実行された場合、返されるオブジェクトには操作結果が含まれます。 例 例1 mysql_xdevapi\Collection::remove() example <?php $session = mysql_xdevapi\getSession ( "mysqlx://user:password@localhost" ); $session -> sql ( "DRO ... te (); $session -> sql ( "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); $collection -> add ( '{"name": "Alfred", "age": 18, "job": "Butler"}' )-> exec ... ute (); $collection -> add ( '{"name": "Bob", "age": 19, "job": "Painter"}' )-> execute (); // 全ての Painter を削除 $collection -> remove ( " ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collection.remove.html
CollectionRemove::__construct — CollectionRemove のコンストラクタ | PHP 8.3 7688
CollectionRemove::__construct (No version information available, might only be in Git) CollectionRemove::__construct — CollectionRemove のコンストラクタ 説明 private function mysql_xdevapi\CollectionRemove::__construct () コレクションのドキ ... ュメントを削除します。 mysql_xdevapi\Collection::remove() によってインスタンス化されます。 パラメータ この関数にはパラメータはありません。 例 例1 mysql_xdevapi\Collection ... te (); $session -> sql ( "CREATE DATABASE addressbook" )-> execute (); $schema = $session -> getSchema ( "addressbook" ); $collection = $schema -> createCollection ( "people" ); $collection -> add ( '{"name": "Alfred", "age": 18, "job": "Butler"}' )-> exec ... ute (); $collection -> add ( '{"name": "Bob", "age": 19, "job": "Painter"}' )-> execute (); // すべての Painter を削除する $collection -> remo ...
https://man.mtool.work/php/8.3/mysql-xdevapi-collectionremove.construct.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT