How would I be able to take a phrase and insert a comma after every word? Or, insert a comma before every space?
Like:
This is a paragraph.
into:
This, is, a, paragraph.
$string = 'This is a paragraph.'; echo str_replace(' ', ', ', $string);