How can I split a string by word? When I do $words = preg_split('/\b\w+\b/', $message);
then the resulting array has the correct number of keys, but the array values are all blank?
Dani 4,294 The Queen of DaniWeb Administrator Featured Poster Premium Member
Dani 4,294 The Queen of DaniWeb Administrator Featured Poster Premium Member
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Dani commented: Thanks! +15
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.