LdapTools\Utilities\MBString::strtolower PHP Метод

strtolower() публичный статический Метод

Make a string lower case.
public static strtolower ( string $value ) : string
$value string
Результат string
    public static function strtolower($value)
    {
        if (self::isMbstringLoaded()) {
            return mb_strtolower($value, 'UTF-8');
        }
        return strtolower($value);
    }

Usage Example

Пример #1
0
 /**
  * If any attributes that were requested to be ordered by are not explicitly in the attribute selection, add them.
  *
  * @param array $attributes
  * @param null|string $alias
  * @return array
  */
 protected function mergeOrderByAttributes(array $attributes, $alias = null)
 {
     if (!$this->isWildCardSelection() && !empty($this->orderBy)) {
         $orderBy = $this->getAttributesForAlias(array_keys($this->orderBy), $alias);
         foreach ($orderBy as $attribute) {
             if (!in_array(MBString::strtolower($attribute), MBString::array_change_value_case($attributes))) {
                 $attributes[] = $attribute;
             }
         }
     }
     return $attributes;
 }
All Usage Examples Of LdapTools\Utilities\MBString::strtolower