Php Get Duplicate Values In Array Python