hello. I need to dedupe e text. meaning if i have an array with stored strings, it will check and compare each row of array with each other to test if text[i]==text[i+1]. to dot this i thougt to catch the text from an input, ex:text are and consider it as a long string.
then each space between words to be considered as new line and to be entered into the array. sample:$string1="aa bb cc aa";
what code should i type here so it can become like this:$array1=array("aa","bb","cc","aa");
and at the end afer dedupet it will posted:
aa
bb
cc
nstrazimiri 0 Light Poster
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
nstrazimiri 0 Light Poster
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
nstrazimiri 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.