Python While Loop Over Array Php Format Numeric Values Shown Character