Php Find Index In Array Python Definition