PHP Code:
function onCreated()
{
temp.var = {1,2,3};
for ( temp.v: temp.var )
{
echo( temp.v );
if ( temp.v == 1 )
temp.var.remove( temp.v );
}
}
Output:
That is... When you remove an index within a for ( element: array ), the following element is skipped... That is, the index of the array isn't backed up by the amount of indexes deleted/removed.