PHP array bug

A post was split to a new topic: Problem finding number in array