SluggerInterface
in
Creates a URL-friendly slug from a given string.
Tags
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