Php Unique Items In Array Javascript Append Html