can you tell how i can use php explode() function?

if i have this for example, how can i display the array in a loop?

<?
$string = "simple sentence with five words";
$words= explode(" ", $string );
?>