Php Get Index Of Character In String Python W3schools