codehaven - php snippets - coding help
Generic filters
Exact matches only

Stop duplicates of one part of an array

15th January 2019

Php - Loops

php codehaven

Database was getting 1 array
a$ = (“12,13,14”, “45,46,47” , “21,21,22”);
I wanted to stop the duplicates of the last part so unique array would not work.
I wanted to get 21-22 NOT 21-21-22 for the last part.

Was this code snippet helpful?