Get First Word of a String

 
<?php

$word = strtok($string, " ");

?>

 

Related Snippets

•  Heredoc String