public function lastWord($s)
	{
		if (empty($s))
		{
			return null;
		}
		$words = Stringy::create($s)->collapseWhitespace()->split(' ');
		return (string) current(end($words));
	}
public function lastWord($s)
	{
		if (empty($s))
		{
			return null;
		}
		$words = Stringy::create($s)->collapseWhitespace()->split(' ');
		return (string) current(end($words));
	}
public function lastWord ( $ s ) { if ( empty ( $ s ) ) { return null ; } $ words = Stringy :: create ( $ s ) -> collapseWhitespace ( ) -> split ( ' ' ) ; return ( string ) current ( end ( $ words ) ) ; }
Returns the last word in the string, or an empty string if the source string is empty.

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