hello,
while iterating over an array i would like to check if I am currently on the last element. Until now I do the following, but I know that it will tragically decrease performance if the array is too big:
foreach ($aPropertiesForBinding as $sCurrentKey => $sCurrentValue) {
// do something
if ($sCurrentKey !== end(array_keys($aPropertiesForBinding))) {
$sSql .= ', ';
}
}
has anyboda a better idea?
thx
Sebastian