Php Get Duplicate Values In Array Javascript Append Method C