Search
Archives

You are currently browsing the archives for the PHP category.

Archive for the ‘PHP’ Category

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 .= “,”;
}