One way (not the best possible but..) is to split those words and handle them as variables.
Like that:
$str = "i am fine";
-->
list($word1,$word2,$word3) = explode(" ", $str);
so now it "explodes" the string to three variables using blankspace " " as a "splitter".
Better solutions are welcome :-)