Python While Loop Over Array Php Documentation