1 2 3 4 5
<?php $str="this is string"; $array=explode(" ",$str); print_r($array); ?>
1 2 3 4 5 6
Array ( [0] => this [1] => is [2] => string )