Пример #1
0
 /**
  * Converts any accent characters to their equivalent normal characters
  *
  * @param string $text
  * @param bool   $isCache
  * @return string
  */
 public static function slug($text = '', $isCache = false)
 {
     static $cache = array();
     if (!$isCache) {
         return Slug::filter($text);
     } elseif (!array_key_exists($text, $cache)) {
         // Not Arr::key() for performance
         $cache[$text] = Slug::filter($text);
     }
     return $cache[$text];
 }