You are currently browsing the blog archives for January, 2016.

Archive for January, 2016

Over the Years I have seen a lot of ways to do this, but this is by far my favorite and the cleanest method to detect last row in a foreach statement
foreach($input as $key => $value) {
$ret .= “$value”;
if (next($input)==true) $ret .= “,”;