« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for eight (0.003 sec.)
ジェネレータの構文 11748
« ジェネレータとは ジェネレータと Iterator オブジェクトとの比較 » PHP Manual ジェネレータ ジェネレータの構文 検索 ジェネレータの構文 ジェネレータ関数の見た目はふつうの関数とほぼ同じです。違うのは、値を返すのではなく、 必要なだけ値を yield す ... ion count_to_ten () { yield 1 ; yield 2 ; yield from [ 3 , 4 ]; yield from new ArrayIterator ([ 5 , 6 ]); yield from seven_eight (); yield 9 ; yield 10 ; } function seven_eight () { yield 7 ; yield from eight (); } function eight () { yield 8 ; } fore ... ion count_to_ten () { yield 1 ; yield 2 ; yield from [ 3 , 4 ]; yield from new ArrayIterator ([ 5 , 6 ]); yield from seven_eight (); return yield from nine_ten (); } function seven_eight () { yield 7 ; yield from eight (); } function eight () { yield ... 例の出力は以下となります。 1 2 3 4 5 6 7 8 9 10 関連キーワード: yield ジェネレータ キー function gen 配列 array foreach echo eight オブジェクト php value input fields iterator ten 構文 return 場合 ...
https://man.mtool.work/php/8.3/language.generators.syntax.html
ジェネレータの構文 11748
« ジェネレータとは ジェネレータと Iterator オブジェクトとの比較 » PHP Manual ジェネレータ ジェネレータの構文 検索 ジェネレータの構文 ジェネレータ関数の見た目はふつうの関数とほぼ同じです。違うのは、値を返すのではなく、 必要なだけ値を yield す ... ion count_to_ten () { yield 1 ; yield 2 ; yield from [ 3 , 4 ]; yield from new ArrayIterator ([ 5 , 6 ]); yield from seven_eight (); yield 9 ; yield 10 ; } function seven_eight () { yield 7 ; yield from eight (); } function eight () { yield 8 ; } fore ... ion count_to_ten () { yield 1 ; yield 2 ; yield from [ 3 , 4 ]; yield from new ArrayIterator ([ 5 , 6 ]); yield from seven_eight (); return yield from nine_ten (); } function seven_eight () { yield 7 ; yield from eight (); } function eight () { yield ... $gen -> getReturn (); 上の例の出力は以下となります。 1 2 3 4 5 6 7 8 9 10 関連キーワード: yield ジェネレータ キー foreach eight input fields iterator 構文 return three count seven 反復 ループ キーワード ペア reference number 見た目 Generator getRetur ...
https://man.mtool.work/php/8.3/language.generators.syntax.html
This method adds a new entry to the hash 10085
« QuickHashIntStringHash QuickHashIntStringHash::__construct » PHP Manual QuickHashIntStringHash This method adds a new entry to the hash 検索 QuickHashIntStringHash::add (PECL quickhash >= Unknown) QuickHashIntStringHash::add — This method ... K_FOR_DUPES ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "seventy eight" ) ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "nine" ) ); ?> 上 ... e) string(10) "twenty two" bool(true) with dupe checking bool(false) bool(false) bool(true) bool(true) string(13) "seventy eight" bool(false) 関連キーワード: hash dump QuickHashIntStringHash entry method adds added dupe checking exists passed without ... twenty seventy eight construct quickhash Unknown whether Entries default always unless created converted ...
https://man.mtool.work/php/8.3/quickhashintstringhash.add.html
This method adds a new entry to the hash 8964
« QuickHashIntStringHash QuickHashIntStringHash::__construct » PHP Manual QuickHashIntStringHash This method adds a new entry to the hash 検索 QuickHashIntStringHash::add (PECL quickhash >= Unknown) QuickHashIntStringHash::add — This method ... K_FOR_DUPES ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "seventy eight" ) ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , "nine" ) ); ?> 上 ... e) string(10) "twenty two" bool(true) with dupe checking bool(false) bool(false) bool(true) bool(true) string(13) "seventy eight" bool(false) 関連キーワード: hash var dump QuickHashIntStringHash bool add entry new true false string method adds added d ...
https://man.mtool.work/php/8.3/quickhashintstringhash.add.html
SQL 文で使用するユーザー定義集約関数を登録する 7428
« Pdo\Sqlite Pdo\Sqlite::createCollation » PHP Manual Pdo\Sqlite SQL 文で使用するユーザー定義集約関数を登録する 検索 Pdo\Sqlite::createAggregate (PHP 8 >= 8.4.0) Pdo\Sqlite::createAggregate — SQL 文で使用するユーザー定義集約関数を登録する 説 ... context の値をそのまま返すことができます。 <?php $data = [ 'one' , 'two' , 'three' , 'four' , 'five' , 'six' , 'seven' , 'eight' , 'nine' , 'ten' , ]; $db = new Pdo\Sqlite ( 'sqlite::memory:' ); $db -> exec ( "CREATE TABLE strings(a)" ); $insert = $d ...
https://man.mtool.work/php/8.3/pdo-sqlite.createaggregate.html
SQL の集約関数として使用する PHP 関数を登録する 7428
« SQLite3::__construct SQLite3::createCollation » PHP Manual SQLite3 SQL の集約関数として使用する PHP 関数を登録する 検索 SQLite3::createAggregate (PHP 5 >= 5.3.0, PHP 7, PHP 8) SQLite3::createAggregate — SQL の集約関数として使用する PHP 関 ... 返します 例 例1 max_length 集約関数の例 <?php $data = array( 'one' , 'two' , 'three' , 'four' , 'five' , 'six' , 'seven' , 'eight' , 'nine' , 'ten' , ); $db = new SQLite3 ( ':memory:' ); $db -> exec ( "CREATE TABLE strings(a)" ); $insert = $db -> prepa ...
https://man.mtool.work/php/8.3/sqlite3.createaggregate.html
SQL 文で使用するユーザー定義集約関数を登録する 7428
« Pdo\Sqlite Pdo\Sqlite::createCollation » PHP Manual Pdo\Sqlite SQL 文で使用するユーザー定義集約関数を登録する 検索 Pdo\Sqlite::createAggregate (PHP 8 >= 8.4.0) Pdo\Sqlite::createAggregate — SQL 文で使用するユーザー定義集約関数を登録する 説 ... context の値をそのまま返すことができます。 <?php $data = [ 'one' , 'two' , 'three' , 'four' , 'five' , 'six' , 'seven' , 'eight' , 'nine' , 'ten' , ]; $db = new Pdo\Sqlite ( 'sqlite::memory:' ); $db -> exec ( "CREATE TABLE strings(a)" ); $insert = $d ...
https://man.mtool.work/php/8.3/pdo-sqlite.createaggregate.html
SQL の集約関数として使用する PHP 関数を登録する 7428
« SQLite3::__construct SQLite3::createCollation » PHP Manual SQLite3 SQL の集約関数として使用する PHP 関数を登録する 検索 SQLite3::createAggregate (PHP 5 >= 5.3.0, PHP 7, PHP 8) SQLite3::createAggregate — SQL の集約関数として使用する PHP 関 ... 返します 例 例1 max_length 集約関数の例 <?php $data = array( 'one' , 'two' , 'three' , 'four' , 'five' , 'six' , 'seven' , 'eight' , 'nine' , 'ten' , ); $db = new SQLite3 ( ':memory:' ); $db -> exec ( "CREATE TABLE strings(a)" ); $insert = $db -> prepa ...
https://man.mtool.work/php/8.3/sqlite3.createaggregate.html
PREV 1 NEXT