I'm using a loop as in
for ($k=0; $k < $count ; $k++)
checking for a condition...
then if the condition matches i have to remove that element from the array.. something like array[$k].if i use unset and the element goes off and the next element comes in its place and hence i wont be able to chk for that element.
ex:- array("hi","bi","hye", "hello")
now suppose the condition matches for array[1] then that particular array[1] i.e bi is deleted and hye i.e array[2] comes in place of array[1] and i cant chk for the array[2] condition at all... So the "hye" is never processed!
if i say $k = $k-1, the loop goes on indefinitely!
Can you please help....