Documentation

SluggerInterface
in

Creates a URL-friendly slug from a given string.

Tags
author

Titouan Galopin galopintitouan@gmail.com

Table of Contents

slug()  : AbstractUnicodeString
Creates a slug for the given string and locale, using appropriate transliteration when needed.

Methods

slug()

Creates a slug for the given string and locale, using appropriate transliteration when needed.

public slug(string $string[, string $separator = '-' ][, string $locale = null ]) : AbstractUnicodeString
Parameters
$string : string
$separator : string = '-'
$locale : string = null
Return values
AbstractUnicodeString

Search results