store split data into array variable : I'd like to store split data in array like this:

    $cp="my name is abcd";
    $i=0;
    $length=str_word_count($cp);
    foreach ($cp as $c ) {
    $array[i]=$c;
    $i++; 
    }
    for($j=0;$j<$length;$j++){
    echo $array[j]; 
    }

it's not working...