Php Find Index In Array Of Structures In Python