I am trying to split a variable that holds an articles content.
I want to loop through it to find keywords but I want to break up the content into an array.
preg_split("/[.,] \s /", $content);
So what I am doing here is splitting the content based on a "." or "," or a white space.
I was reading two different articles here on stack overflow one speaking about the split that is used like explode().
The other was about how the above syntex would work but I added the \s so I am assuming that is where I am going wrong. I have tried the \s within the bracket and out but still can't get it to work.