Answers for "php foreach count rows"

PHP
0

php foreach count rows

<?php

$count = 0;

foreach( $names as $name){

$count = $count + 1;

echo  "<td>".$count. "</td>

      "<td>".$name. "</td>";
}

echo $count;

?>
Posted by: Guest on February-16-2021

Browse Popular Code Answers by Language