WordPress at Your Fingertips
function is not described

SimplePie_Misc::space_separated_tokens() public WP 1.0

{} It's a method of the class: SimplePie_Misc{}

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::space_separated_tokens( $string );
$string (required)
-

Code of SimplePie_Misc::space_separated_tokens() WP 5.8.2

public static function space_separated_tokens($string)
{
	$space_characters = "\x20\x09\x0A\x0B\x0C\x0D";
	$string_length = strlen($string);

	$position = strspn($string, $space_characters);
	$tokens = array();

	while ($position < $string_length)
	{
		$len = strcspn($string, $space_characters, $position);
		$tokens[] = substr($string, $position, $len);
		$position += $len;
		$position += strspn($string, $space_characters, $position);
	}

	return $tokens;
}