You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
354 B
PHP
19 lines
354 B
PHP
<?php
|
|
|
|
namespace jrosset\Collections;
|
|
|
|
/**
|
|
* Implementation for insensitive case key
|
|
*/
|
|
trait TInsensitiveCaseKey {
|
|
/**
|
|
* Normalize a key
|
|
*
|
|
* @param array-key $key The key to normalize
|
|
*
|
|
* @return array-key The normalized key
|
|
*/
|
|
protected function _normalizeKey ($key) {
|
|
return mb_strtolower($key);
|
|
}
|
|
} |