Php Find Index In String Python Example