<?php chr(int $codepoint): string
<?php public function testWithoutWordsDoesntProduceError() { $nbsp = chr(0xC2).chr(0xA0); $this->assertSame(' ', (string) $this->stringable(' ')->words()); $this->assertEquals($nbsp, (string) $this->stringable($nbsp)->words()); }
<?php public function testStringWithoutWordsDoesntProduceError() { $nbsp = chr(0xC2).chr(0xA0); $this->assertSame(' ', Str::words(' ')); $this->assertEquals($nbsp, Str::words($nbsp)); }