« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 176 for green (0.002 sec.)
一つ以上の要素を配列の最初に加える 10317
« array_unique array_values » PHP Manual 配列 関数 一つ以上の要素を配列の最初に加える 検索 array_unshift (PHP 4, PHP 5, PHP 7, PHP 8) array_unshift — 一つ以上の要素を配列の最初に加える 説明 function array_unshift ( array &$array , mixed ... ... もともとある配列の整数のインデックスに追加されます。 <?php $foods = [ 'apples' => [ 'McIntosh' => 'red' , 'Granny Smith' => 'green' , ], 'oranges' => [ 'Navel' => 'orange' , 'Valencia' => 'orange' , ], ]; $vegetables = [ 'lettuce' => [ 'Iceberg' => 'gre ... en' , 'Butterhead' => 'green' , ], 'carrots' => [ 'Deep Purple Hybrid' => 'purple' , 'Imperator' => 'orange' , ], 'cucumber' => [ 'Kirby' => 'green' , ... 'Gherkin' => 'green' , ], ]; array_unshift ( $foods , $vegetables ); var_dump ( $foods ); ?> 上の例の出力は以下となります。 array(3) { [0]=> a ...
https://man.mtool.work/php/8.3/function.array-unshift.html
一つ以上の要素を配列の最初に加える 10317
« array_unique array_values » PHP Manual 配列 関数 一つ以上の要素を配列の最初に加える 検索 array_unshift (PHP 4, PHP 5, PHP 7, PHP 8) array_unshift — 一つ以上の要素を配列の最初に加える 説明 function array_unshift ( array &$array , mixed ... ... もともとある配列の整数のインデックスに追加されます。 <?php $foods = [ 'apples' => [ 'McIntosh' => 'red' , 'Granny Smith' => 'green' , ], 'oranges' => [ 'Navel' => 'orange' , 'Valencia' => 'orange' , ], ]; $vegetables = [ 'lettuce' => [ 'Iceberg' => 'gre ... en' , 'Butterhead' => 'green' , ], 'carrots' => [ 'Deep Purple Hybrid' => 'purple' , 'Imperator' => 'orange' , ], 'cucumber' => [ 'Kirby' => 'green' , ... 'Gherkin' => 'green' , ], ]; array_unshift ( $foods , $vegetables ); var_dump ( $foods ); ?> 上の例の出力は以下となります。 array(3) { [0]=> a ...
https://man.mtool.work/php/8.3/function.array-unshift.html
Color Representation 9357
« UI\Draw\Matrix::translate UI\Draw\Color::__construct » PHP Manual UI Color Representation 検索 Color Representation (UI 0.9.9) はじめに Represents RGBA colours, individual channels are accessible via public properties. クラス概要 class UI ... \Draw\Color { /* 定数 */ const int Red ; const int Green ; const int Blue ; const int Alpha ; /* プロパティ */ public $ r ; public $ g ; public $ b ; public $ a ; /* Constructor * ... etChannel ( int $channel , float $value ): void } プロパティ r Provides access to the red channel g Provides access to the green channel b Provides access to the blue channel a Provides access to the alpha channel 定義済み定数 UI\Draw\Color::Red Ident ... ifies the red channel UI\Draw\Color::Green Identifies the green channel UI\Draw\Color::Blue Identifies the blue channel UI\Draw\Color::Alpha Identifies the alpha cha ...
https://man.mtool.work/php/8.3/class.ui-draw-color.html
Color Representation 8486
« UI\Draw\Matrix::translate UI\Draw\Color::__construct » PHP Manual UI Color Representation 検索 Color Representation (UI 0.9.9) はじめに Represents RGBA colours, individual channels are accessible via public properties. クラス概要 class UI ... \Draw\Color { /* 定数 */ const int Red ; const int Green ; const int Blue ; const int Alpha ; /* プロパティ */ public $ r ; public $ g ; public $ b ; public $ a ; /* Constructor * ... etChannel ( int $channel , float $value ): void } プロパティ r Provides access to the red channel g Provides access to the green channel b Provides access to the blue channel a Provides access to the alpha channel 定義済み定数 UI\Draw\Color::Red Ident ... ifies the red channel UI\Draw\Color::Green Identifies the green channel UI\Draw\Color::Blue Identifies the blue channel UI\Draw\Color::Alpha Identifies the alpha cha ...
https://man.mtool.work/php/8.3/class.ui-draw-color.html
要素を逆順にした配列を返す 7928
« array_replace_recursive array_search » PHP Manual 配列 関数 要素を逆順にした配列を返す 検索 array_reverse (PHP 4, PHP 5, PHP 7, PHP 8) array_reverse — 要素を逆順にした配列を返す 説明 function array_reverse ( array $array , bool $preserve_ ... 常に保持されます。 戻り値 逆転させた配列を返します。 例 例1 array_reverse() の例 <?php $input = array( "php" , 4.0 , array( "green" , "red" )); $reversed = array_reverse ( $input ); $preserved = array_reverse ( $input , true ); print_r ( $input ); print ... ( $reversed ); print_r ( $preserved ); ?> 上の例の出力は以下となります。 Array ( [0] => php [1] => 4 [2] => Array ( [0] => green [1] => red ) ) Array ( [0] => Array ( [0] => green [1] => red ) [1] => 4 [2] => php ) Array ( [2] => Array ( [0] => green ... [1] => 4 [0] => php ) 参考 array_flip() - 配列のキーと値を反転する 関連キーワード: array 配列 reverse Array php 要素 input green red 逆順 キー print preserve keys true 数値 保持 reversed preserved replace ...
https://man.mtool.work/php/8.3/function.array-reverse.html
要素を逆順にした配列を返す 7928
« array_replace_recursive array_search » PHP Manual 配列 関数 要素を逆順にした配列を返す 検索 array_reverse (PHP 4, PHP 5, PHP 7, PHP 8) array_reverse — 要素を逆順にした配列を返す 説明 function array_reverse ( array $array , bool $preserve_ ... 常に保持されます。 戻り値 逆転させた配列を返します。 例 例1 array_reverse() の例 <?php $input = array( "php" , 4.0 , array( "green" , "red" )); $reversed = array_reverse ( $input ); $preserved = array_reverse ( $input , true ); print_r ( $input ); print ... ( $reversed ); print_r ( $preserved ); ?> 上の例の出力は以下となります。 Array ( [0] => php [1] => 4 [2] => Array ( [0] => green [1] => red ) ) Array ( [0] => Array ( [0] => green [1] => red ) [1] => 4 [2] => php ) Array ( [2] => Array ( [0] => green ... [1] => red ) [1] => 4 [0] => php ) 参考 array_flip() - 配列のキーと値を反転する 関連キーワード: reverse input green 逆順 キー print preserve keys 数値 保持 reversed preserved replace recursive 順番 逆転 参考 flip 反転 ...
https://man.mtool.work/php/8.3/function.array-reverse.html
結果セットから、残っている行を取得する 7369
« PDOStatement::fetch PDOStatement::fetchColumn » PHP Manual PDOStatement 結果セットから、残っている行を取得する 検索 PDOStatement::fetchAll (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDOStatement::fetchAll — 結果セットから、残ってい ... => Array ( [name] => apple [0] => apple [colour] => red [1] => red ) [1] => Array ( [name] => pear [0] => pear [colour] => green [1] => green ) [2] => Array ( [name] => watermelon [0] => watermelon [colour] => pink [1] => pink ) ) 例2 結果セットから単 ... <?php $insert = $dbh -> prepare ( "INSERT INTO fruit(name, colour) VALUES (?, ?)" ); $insert -> execute (array( 'apple' , 'green' )); $insert -> execute (array( 'pear' , 'yellow' )); $sth = $dbh -> prepare ( "SELECT name, colour FROM fruit" ); $sth -> ... O :: FETCH_GROUP )); ?> 上の例の出力は、 たとえば以下のようになります。 array(3) { ["apple"]=> array(2) { [0]=> string(5) "green" [1]=> string(3) "red" } ["pear"]=> array(2) { [0]=> string(5) "green" [1]=> string(6) "yellow" } ["watermelon"]=> array(1 ...
https://man.mtool.work/php/8.3/pdostatement.fetchall.html
注記の枠線の色を設定する 7291
« ps_scale ps_set_border_dash » PHP Manual PS 関数 注記の枠線の色を設定する 検索 ps_set_border_color (PECL ps >= 1.1.0) ps_set_border_color — 注記の枠線の色を設定する 説明 function ps_set_border_color ( resource $psdoc , float $red , float ... $green , float $blue ): bool ps_add_weblink() や ps_add_pdflink() などの関数で追加されたリンクは、 pdf に変換して pdf ビューアで見 ... 矩形の枠線の色を設定します。 パラメータ psdoc ps_new() が返す、postscript ファイルのリソース ID。 red 枠線の色の red 要素。 green 枠線の色の green 要素。 blue 枠線の色の blue 要素。 戻り値 成功した場合に true を、失敗した場合に false を返します。 参考 ... の状態を設定する ps_set_border_style() - 注記の枠線の形式を設定する 関連キーワード: ps 枠線 set border 注記 color float red green blue 矩形 要素 dash psdoc add pdf postscript 場合 scale Search ...
https://man.mtool.work/php/8.3/function.ps-set-border-color.html
結果セットから、残っている行を取得する 7291
« PDOStatement::fetch PDOStatement::fetchColumn » PHP Manual PDOStatement 結果セットから、残っている行を取得する 検索 PDOStatement::fetchAll (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDOStatement::fetchAll — 結果セットから、残ってい ... => Array ( [name] => apple [0] => apple [colour] => red [1] => red ) [1] => Array ( [name] => pear [0] => pear [colour] => green [1] => green ) [2] => Array ( [name] => watermelon [0] => watermelon [colour] => pink [1] => pink ) ) 例2 結果セットから単 ... <?php $insert = $dbh -> prepare ( "INSERT INTO fruit(name, colour) VALUES (?, ?)" ); $insert -> execute (array( 'apple' , 'green' )); $insert -> execute (array( 'pear' , 'yellow' )); $sth = $dbh -> prepare ( "SELECT name, colour FROM fruit" ); $sth -> ... O :: FETCH_GROUP )); ?> 上の例の出力は、 たとえば以下のようになります。 array(3) { ["apple"]=> array(2) { [0]=> string(5) "green" [1]=> string(3) "red" } ["pear"]=> array(2) { [0]=> string(5) "green" [1]=> string(6) "yellow" } ["watermelon"]=> array(1 ...
https://man.mtool.work/php/8.3/pdostatement.fetchall.html
配列の一部を削除し、他の要素で置換する 7213
« array_slice array_sum » PHP Manual 配列 関数 配列の一部を削除し、他の要素で置換する 検索 array_splice (PHP 4, PHP 5, PHP 7, PHP 8) array_splice — 配列の一部を削除し、他の要素で置換する 説明 function array_splice ( array &$array , int $off ... 変更履歴 バージョン 説明 8.0.0 length は、nullable になりました。 例 例1 array_splice() の例 <?php $input = array( "red" , "green" , "blue" , "yellow" ); array_splice ( $input , 2 ); var_dump ( $input ); $input = array( "red" , "green" , "blue" , "yell ... ow" ); array_splice ( $input , 1 , - 1 ); var_dump ( $input ); $input = array( "red" , "green" , "blue" , "yellow" ); array_splice ( $input , 1 , count ( $input ), "orange" ); var_dump ( $input ); $input = array( "re ... d" , "green" , "blue" , "yellow" ); array_splice ( $input , - 1 , 1 , array( "black" , "maroon" )); var_dump ( $input ); ?> 上の例の出 ...
https://man.mtool.work/php/8.3/function.array-splice.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT