1.(used of count nouns) every one considered individually;
each person is mortal
2.to or from every one of two or more (considered individually);
they received $10 each
程序 each (PHP 3, PHP 4, PHP 5) each -- 返回數(shù)組中當(dāng)前的鍵/值對并將數(shù)組指針向前移動一步說明 array each ( array &array ) 返回 array 數(shù)組中當(dāng)前指針位置的鍵/值對并向前移動數(shù)組指針。鍵值對被返回為四個單元的數(shù)組,鍵名為 0,1,key 和 value。單元 0 和 key 包含有數(shù)組單元的鍵名,1 和 value 包含有數(shù)據(jù)。 如果內(nèi)部指針越過了數(shù)組的末端,則 each() 返回 FALSE。例子 1. each() 例子 <?php $foo = array("