Typescript Array Index Of Php