Php Find Index In Array Of Structures In C