Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php foreach count rows

<?php

$count = 0;

foreach( $names as $name){

$count = $count + 1;

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

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

echo $count;

?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #foreach #count #rows
ADD COMMENT
Topic
Name
9+4 =