Php Get Duplicate Values In Array Function