Hi,
I am trying to output the total value of $i outside the loop. What's the best way to go about this?
echo $i; // need to echo this, in this case, value would be '3'
$id = array("12","34","645");
foreach($id as $items)
{
echo $items.'<br />';
$i++;
}
Thank you!