slug() публичный Метод

Return the 'sluggified' version of a string.
public slug ( string $str ) : string
$str string input value
Результат string Slug safe version of the string
Пример #1
0
 public function testSlugArray()
 {
     $app = $this->getApp();
     $handler = new TextHandler($app);
     $slug = ['Köala & Clippy', 'úp thé trèé'];
     $result = $handler->slug($slug);
     $this->assertSame('koeala-clippy-up-the-tree', $result);
 }