PHP框架中的一个奇怪的功能Slim

时间:2014-01-22 09:28:43

标签: php slim

以下函数normalizeKey,输入$key,返回$key$key如何从sting转换为混合?

namespace Slim\Helper;

class Set implements \ArrayAccess, \Countable, \IteratorAggregate
{
    ....

    /**
     * Normalize data key
     *
     * Used to transform data key into the necessary
     * key format for this set. Used in subclasses
     * like \Slim\Http\Headers.
     *
     * @param  string $key The data key
     * @return mixed       The transformed/normalized data key
     */
    protected function normalizeKey($key)
    {
        return $key;
    }
    ....
}

0 个答案:

没有答案