public function testWords() { $this->eq(s::words('these are words'), array('these', 'are', 'words')); $this->eq(s::words(" these are\n\twords \n"), array('these', 'are', 'words')); $this->eq(s::words(''), array()); $this->eq(s::words(" \tabc \t\n ", "\n\t"), array("\tabc", "\t\n")); }
public function words($chars = null) { return new XArray(s::words($this->value, self::unwrap($chars))); }