Php Find Array Element By Element Matrix