最佳答案
如何计算一个 foreach 中有多少项?
我要计算总行数。
foreach ($Contents as $item) {
$item[number];// if there are 15 $item[number] in this foreach, I want get the value : 15
}