How can I tell the explode() function to accept multiple similar types of delimiters.
I want it break up the string on the following "," " ," " , " ", " Bascially I want it to be able to detect the comma reguardless of whitespace
Thanks for any help
you could [man]expolode[/man] the string then [man]trim[/man] each array value
devinemke wrote:you could [man]expolode[/man] the string then [man]trim[/man] each array value
Thanks for the idea, but I realized that this mistake was a mistake in my knowledge of PHP
$parts = preg_split('/\s*,\s*/', $text);