Posts by Daniel Ramalho • 26 points
1 post
-
1
votes1
answer196
viewsA: Return value generated from foreach
$i=0; $len = count($table['exists']); foreach ($table['exists'] as $item) { switch ($i) { case 0: $marray[0][$i] = $item.' = "'.$_POST[$item].'" AND '; break; case $len - 1: $marray[1][$i] = $item.'…