Is there an array_unique function?
Otherwise, the closest I can come up with is keyword_extract( string, keywords var ) where string is an array of product:codes stemmed.
Does it return a list of unique elements? Can the string be an array? Does var define the scope?
I am trying to display a unique list of related products on the INVC and BASK page.
Some items share the same related products and if I iterate through each items related products then the same related product will display more than once.
I can create an array of all_related_products, just can't make them unique.
TIA
Dan
Otherwise, the closest I can come up with is keyword_extract( string, keywords var ) where string is an array of product:codes stemmed.
Does it return a list of unique elements? Can the string be an array? Does var define the scope?
I am trying to display a unique list of related products on the INVC and BASK page.
Some items share the same related products and if I iterate through each items related products then the same related product will display more than once.
I can create an array of all_related_products, just can't make them unique.
TIA
Dan
Comment