Source Code:
(back to article)
<?php $pattern = '/[\s,]+/'; $string = 'This is a test,string'; $parts = preg_split($pattern, $string); print_r($parts);
Result:
Report an issue