Results of 41 - 50 of about 389 for foreach (0.010 sec.)
- このクラスがイテレーション可能かを調べる 5066
- « ReflectionClass::isInternal ReflectionClass::isIterateable » PHP Manual ReflectionClass このク
...
(): bool このクラスがイテレーション可能か(つまり、 foreach の内部で使えるか)を調べます。 パラメータ この関数に ...
IteratorClass" , "DerivedClass" , "NonIterator" ); foreach ( $classes as $class ) { echo "Is $class iterable? ...
-
https://man.plustar.jp/php/reflectionclass.isiterable.html
- [similar]
- 双方向リンクリストを使用して実装した新しい空のキューを作成する 5066
- « SplQueue SplQueue::dequeue » PHP Manual SplQueue 双方向リンクリストを使用して実装した新しい空の
...
w SplQueue (); $q [] = 1 ; $q [] = 2 ; $q [] = 3 ; foreach ( $q as $elem ) { echo $elem . "\n" ; } ?> 上の例の ...
タスクをキューに放り込みます ... // それを処理します foreach ( $q as $task ) { // ... $task の処理 ... // 新たな ...
-
https://man.plustar.jp/php/splqueue.construct.html
- [similar]
- IntlIterator クラス 4988
- « IntlException IntlIterator::current » PHP Manual intl IntlIterator クラス IntlIterator クラス
...
トでも認識できない イテレータを表現します。 言語構造 foreach によって内部的に使われる独自のイテレータは、 オブジ ...
使って走査することができます。 これらのメソッドも、 foreach に提供される内部的なイテレータオブジェクトも、 同じ ...
-
https://man.plustar.jp/php/class.intliterator.html
- [similar]
- インデックスで指定したノードを取得する 4988
- « DOMNodeList::count DOMNotation » PHP Manual DOMNodeList インデックスで指定したノードを取得する
...
em ( $i )-> nodeValue . "\n" ; } ?> 別の方法として foreach を使用することも可能で、 こちらのほうがずっと使いや ...
すいでしょう。 <?php foreach ( $items as $item ) { echo $item -> nodeValue . "\ ...
-
https://man.plustar.jp/php/domnodelist.item.html
- [similar]
- イテレータにある要素をカウントする 4988
- « iterator_apply iterator_to_array » PHP Manual SPL 関数 イテレータにある要素をカウントする iter
...
力は以下となります。 string(3) "one" int(3) NULL 例3 foreach ループ内での iterator_count() <?php $iterator = ne ...
w ArrayIterator ([ 'one' , 'two' , 'three' ]); foreach ( $iterator as $key => $value ) { echo " $key : $v ...
-
https://man.plustar.jp/php/function.iterator-count.html
- [similar]
- Retrieves metadata for the fields of a statement prepared by sqlsrv_prepare or s... 4988
- « sqlsrv_fetch sqlsrv_free_stmt » PHP Manual SQLSRV 関数 Retrieves metadata for the fields of a
...
able_1" ; $stmt = sqlsrv_prepare ( $conn , $sql ); foreach( sqlsrv_field_metadata ( $stmt ) as $fieldMetadata ...
) { foreach( $fieldMetadata as $name => $value ) { echo " $nam ...
-
https://man.plustar.jp/php/function.sqlsrv-field-metadata.html
- [similar]
- 入力ロケールのキーワードを取得する 4988
- « Locale::getDisplayVariant Locale::getPrimaryLanguage » PHP Manual Locale 入力ロケールのキーワー
...
EUR;collation=PHONEBOOK' ); if ( $keywords_arr ) { foreach ( $keywords_arr as $key => $value ) { echo " $key ...
EUR;collation=PHONEBOOK' ); if ( $keywords_arr ) { foreach ( $keywords_arr as $key => $value ) { echo " $key ...
-
https://man.plustar.jp/php/locale.getkeywords.html
- [similar]
- XML データに Xpath クエリを実行する 4988
- « SimpleXMLElement::__toString SimpleXMLIterator » PHP Manual SimpleXMLElement XML データに Xpat
...
を探します */ $result = $xml -> xpath ( '/a/b/c' ); foreach ( $result as $node ) { echo '/a/b/c: ' , $node , " ...
動作します... */ $result = $xml -> xpath ( 'b/c' ); foreach ( $result as $node ) { echo 'b/c: ' , $node , "\n" ...
-
https://man.plustar.jp/php/simplexmlelement.xpath.html
- [similar]
- ファイルの現在の行を取得する 4988
- « SplFileObject::__construct SplFileObject::eof » PHP Manual SplFileObject ファイルの現在の行を取
...
の例 <?php $file = new SplFileObject ( __FILE__ ); foreach ( $file as $k => $line ) { echo ( $file -> key () ...
: <?php 2: $file = new SplFileObject(__FILE__); 3: foreach ($file as $line) { 4: echo ($file->key() + 1) . ': ...
-
https://man.plustar.jp/php/splfileobject.current.html
- [similar]
- 拡張属性の一覧を取得する 4902
- « xattr_get xattr_remove » PHP Manual xattr 関数 拡張属性の一覧を取得する xattr_list (PECL xattr
...
tes = xattr_list ( $file ); echo "Root 属性: \n" ; foreach ( $root_attributes as $attr_name ) { printf ( "%s\ ...
n" , $attr_name ); } echo "\n User 属性: \n" ; foreach ( $attributes as $attr_name ) { printf ( "%s\n" , ...
-
https://man.plustar.jp/php/function.xattr-list.html
- [similar]