"test", "1" => "test1", "2" => "test2");$num = count($"/> "test", "1" => "test1", "2" => "test2");$num = count($">
ホームページ >バックエンド開発 >PHPチュートリアル >多重循环下怎么防止变量超过数组索引
多重循环下如何防止变量超过数组索引
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$arr = array( "0" => "test", "1" => "test1", "2" => "test2");$num = count($arr);for($i=0;$i