I collect values from a column in a table containing titles. Some people have more than one title marked with comma or slash.
The resultset is written in to a string with comma between each value. then all the slashes is converted to commas and explode is used to make an array containing all the values.
This is when I call for the function deleteDup().
It seems it is the trim() function that not manages to take away all the whitespaces.
The string I have made from the database is this:
,,3D & Animation,Assistant,CAD,3D Design,Chief Assistant,Communication Coordinator,Competence Area Manager,Consultant,Controller,Design Engineer,Documentation Clerc,Documentation Coordinator,Documentation Coordinator, Group Manager,Documentation Coordinator, Technical Review,Documentation Coordinator, Technical Writer,Documentation Project Manager,Documentation Technican,Documentation Technology Designer,Group Manager,Group Manager , Technical Author,Group Manager,Technical Writer,Human Resources,Information Architect,Information Assistant,Information Design Coordinator,Information Designer , Technical Writer,Information Management Consultant,Key Account Manager,M.Sc.(Appl.Math.),Project Manager,Marketing Assistant,Marketing Manager,Media Designer,President,Principal Translator,Process Engineer,Producer (NM),Project Coordinator,PDMS Designer,Project Engineer,Project Management Eng.,Project Manager,Project Manager , Technical Author,Project Manager TW,Project Manager,PDMS Designer,Release Documentation Coordinator,Senior Design Engineer,Project Coordinator,Senior Documentation Specialist,Senior Documentation Technican,Senior Technical Writer,Senior Translator,Site Assistant,Site Manager,Subproject Manager,System Designer,System Manager,Technical Author,Technical Development Manager , Project Manager,Technical Director , Design Engineer,Technical Editor,Technical illustrator,Technical Writer,Technical Writer, Translator,Trainee,Translator , Assistant,Vice President,Vice President, Marketing & Sales, Information Production,Vice President,Resourcing & Marketing,Webb Designer