- PHP
- 
                         2006-09-29                                                                                                 - 更新:2012-12-20 2006-09-29                                                                                                 - 更新:2012-12-20
内部配列ポインタを進める
例)
if(条件文) break; //ループを抜ける next($array); //次のレコードへ
<?php
$transport = array('one', 'two', 'three', 'four');
$mode = current($transport); // $mode = 'one';
$mode = next($transport);    // $mode = 'two';
$mode = next($transport);    // $mode = 'three';
$mode = prev($transport);    // $mode = 'two';
$mode = end($transport);     // $mode = 'four';
?>
                    
                    
                    
                 
                                            
                        1,501 views 
                                                                    
                    
                








 Fedoraインストール時にごちゃごちゃになったHDの整理の... (25/02/14)
 Fedoraインストール時にごちゃごちゃになったHDの整理の... (25/02/14)