Thanks for your reply, i'm not sure if i can really use isset and gidarray[$i] because when i then unset($gidarray[$i+4]) and the iteration continues, when $i=$i+4 it will be unset and the loop will stop rather than continuing to the end if you see what i mean? I'm also not convinced even if this is possible (and i'm wrong which is quite possible!) that using continue will help, i still want the loop to complete that iteration and keep the pointer the same, i just need to delete some items from further up the array. Initially i wanted to do this, but i don't think it's possible:
$array=array('one', 'two', 'three', 'four');
hence:
array[0]='one';
array[1]='two';
array[2]='three';
array[3]='four';
CODE TO DELETE array[1] which removes element and updates numerical keys
array ends up as (notice key changes):
array[0]='one';
array[1]='three';
array[2]='four';
I don't think this is possible and i can see why, but i thought i'd mention it as maybe it is or maybe it makes what i'm trying to do clearer?
Thanks so much for your help, it really is greatly appreciated,
Dave