I need help creating a PHP function CreateMetaKeywords($string);
I have one string with a description:
$description = "Create Wind And Solar' Power Systems are alternative & ecologic systems* ";
$exclude array = "create, last, plane";
function should return a string:
1- excluding all non alpha characters
2- excluding the words in $exclude array.
3- excluding words with <= 3 characters
4- Return first 6 remaining words separated by a comma.
Output should be:
"Wind, Solar, Power, systems, alternative, ecologic"
I do appreciate any help with this code.
Thank in advance.