public function firstWord($s)
	{
		if (empty($s))
		{
			return null;
		}
		return (Stringy::create($s)->collapseWhitespace()->split(' ', 2))[0];
	}
public function firstWord($s)
	{
		if (empty($s))
		{
			return null;
		}
		return (Stringy::create($s)->collapseWhitespace()->split(' ', 2))[0];
	}
public function firstWord ( $ s ) { if ( empty ( $ s ) ) { return null ; } return ( Stringy :: create ( $ s ) -> collapseWhitespace ( ) -> split ( ' ' , 2 ) ) [ 0 ] ; }
Returns the first word in the string, or an empty string if the source string is empty.

@param $s
@return string|null
Returns the first word in the string or an empty string if the source string is empty .