How to calculate how many items in a foreach?
I want to count total rows.
foreach ($Contents as $item) { $item[number];// if there are 15 $item[n
foreach ($Contents as $index=>$item) { $item[$index];// if there are 15 $item[number] in this foreach, I want get the value : 15 }