PHP Function Code Convert Line by Line String to Array, Trim Each Line of PHP Array, Remove Duplicates, Remove Blank Lines

PHP Function Code Convert Line by Line String to Array, Remove Duplicates

Home Short:

Here is a very powerful and handy PHP function for converting a line by line string to PHP array (splitting at each line break), trimming each element of the array, remove blank or empty lines, remove duplicates and returning as a super clean array.

S
H
A
R
E