検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 389 for foreach (0.008 sec.)
foreach 15113
« for break » PHP Manual 制御構造 foreach foreach (PHP 4, PHP 5, PHP 7, PHP 8) foreach は、配列を ... 反復処理するための便利な方法です。 foreach が使えるのは配列とオブジェクトだけであり、 別のデー ... ーになります。 この構造には二種類の構文があります。 foreach (iterable_expression as $value) 文 foreach (iterab ... に各反復で現在の要素のキーを変数 $key に代入します。 foreach は、 current() や key() のような関数で使われる、内 ... とになります。 <?php $arr = array( 1 , 2 , 3 , 4 ); foreach ( $arr as & $value ) { $value = $value * 2 ; } // ...
https://man.plustar.jp/php/control-structures.foreach.html - [similar]
For Each 9015
« 例 配列と配列形式の COM プロパティ » PHP Manual 例 For Each For Each 標準的な COM/OLE IEnumVar ... iant の内容について、 PHP の foreach 命令を使用した反復処理を行うことができます。分かり ... やすく言うと、 これは、VB/ASP のコードで For Each を使用できる場所には foreach を使用できるというこ ... とを意味します。 例1 ASP における For Each <% Set domainObject = GetObject("WinNT://Domain") ... For Each obj in domainObject Response.Write obj.Name & "<b ...
https://man.plustar.jp/php/com.examples.foreach.html - [similar]
オブジェクトの反復処理 7820
« オーバーロード マジックメソッド » PHP Manual クラスとオブジェクト オブジェクトの反復処理 オブジ ... ェクトの反復処理 PHP は、たとえば foreach 命令などによる反復処理を可能とするように、 オブジェ ... teVisible () { echo "MyClass::iterateVisible:\n" ; foreach ( $this as $key => $value ) { print " $key => $val ... ue \n" ; } } } $class = new MyClass (); foreach( $class as $key => $value ) { print " $key => $val ... var private => private var 出力からわかるように、 foreach による反復処理がすべての アクセス権がある プロパテ ...
https://man.plustar.jp/php/language.oop5.iterations.html - [similar]
break 7301
« foreach continue » PHP Manual 制御構造 break break (PHP 4, PHP 5, PHP 7, PHP 8) break は、現在 ... 実行中の for , foreach , while , do-while , switch 構造の実行を終了します ... e' , 'two' , 'three' , 'four' , 'stop' , 'five' ); foreach ( $arr as $val ) { if ( $val == 'stop' ) { break; ... ault: break; } } ?> 関連キーワード: break , 構造 , foreach , 実行 , while , ループ , 終了 , ネスト , 直近 , ...
https://man.plustar.jp/php/control-structures.break.html - [similar]
ある範囲の整数を有する配列を作成する 7214
« prev reset » PHP Manual 配列 関数 ある範囲の整数を有する配列を作成する range (PHP 4, PHP 5, PH ... // array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) foreach ( range ( 0 , 12 ) as $number ) { echo $number ; } ... array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100) foreach ( range ( 0 , 100 , 10 ) as $number ) { echo $numb ... rray('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'); foreach ( range ( 'a' , 'i' ) as $letter ) { echo $letter ... ; } echo "\n" ; // array('c', 'b', 'a'); foreach ( range ( 'c' , 'a' ) as $letter ) { echo $letter ...
https://man.plustar.jp/php/function.range.html - [similar]
The MongoDB\Driver\Cursor class 6963
« MongoDB\Driver\ReadConcern::unserialize MongoDB\Driver\Cursor::__construct » PHP Manual MongoD ... e, you can simply iterate over the result set with foreach . <?php $manager = new MongoDB \ Driver \ Manager ... an object that wraps around the result set. Use * foreach() to iterate over all the result */ foreach( $curs ... s . While normal cursors can be iterated once with foreach , that approach will not work with tailable cursor ... s. When foreach is used with a tailable cursor, the loop will stop ...
https://man.plustar.jp/php/class.mongodb-driver-cursor.html - [similar]
pixel iterator をリセットする 6790
« ImagickPixelIterator::newPixelRegionIterator ImagickPixelIterator::setIteratorFirstRow » PHP M ... getPixelIterator (); /* Loop trough pixel rows */ foreach ( $imageIterator as $pixels ) { /* Loop through th ... e pixels in the row (columns) */ foreach ( $pixels as $column => $pixel ) { /** @var $pixel ... -> resetiterator (); /* Loop trough pixel rows */ foreach ( $imageIterator as $pixels ) { /* Loop through th ... e pixels in the row (columns) */ foreach ( $pixels as $column => $pixel ) { /** @var $pixel ...
https://man.plustar.jp/php/imagickpixeliterator.resetiterator.html - [similar]
イテレータの最初の要素に巻き戻す 6703
« Iterator::next Iterator::valid » PHP Manual Iterator イテレータの最初の要素に巻き戻す Iterator ... テレータの最初の要素に巻き戻します。 注意 : これは、 foreach ループの開始時に 最初 にコールされるメソッドです。 ... foreach ループの 後 には実行 されません 。 パラメータ この ... 視されます。 関連キーワード: 最初 , 要素 , rewind , foreach , ループ , パラメータ , next , valid , public , 注 ...
https://man.plustar.jp/php/iterator.rewind.html - [similar]
ジェネレータの構文 6616
« ジェネレータとは ジェネレータと Iterator オブジェクトとの比較 » PHP Manual ジェネレータ ジェネ ... 可能なオブジェクトを返します。 このオブジェクトを ( foreach ループなどで) 反復させると、 値が必要になるたびに ... う yield $i ; } } $generator = gen_one_to_three (); foreach ( $generator as $value ) { echo " $value \n" ; } ? ... ックが大好き EOF; function input_parser ( $input ) { foreach ( explode ( "\n" , $input ) as $line ) { $fields = ... rray_shift ( $fields ); yield $id => $fields ; } } foreach ( input_parser ( $input ) as $id => $fields ) { ec ...
https://man.plustar.jp/php/language.generators.syntax.html - [similar]
オフセットの値を削除する 6270
« ArrayIterator::offsetSet ArrayIterator::rewind » PHP Manual ArrayIterator オフセットの値を削除 ... 置は次のインデックスに移動します。 反復処理の位置が foreach ループの最後であってもインデックスは移動するため、 ... foreach ループの内部で ArrayIterator::offsetUnset() を使う ... ffsetUnset , インデックス , 処理 , 反復 , ループ , foreach ...
https://man.plustar.jp/php/arrayiterator.offsetunset.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT