Quote:
|
Originally Posted by dennispopel
$letters = trim(preg_replace('~([a-z])~i', '\\1 ', 'Friday'));
print_r($letters);
Otherwise there will be an extra space after the last letter.
|
Also, for more flixability, you could use
Then set whatever value you like to $theString.
