preg explode in php code example Example: explode in php $str = 'one two three four'; $numbers4 = explode(' ',$str);