don't use for loops for iterating in php