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