titanscssc::lib_index PHP Method

lib_index() protected method

protected lib_index ( $args )
    protected function lib_index($args)
    {
        list($list, $value) = $args;
        $list = $this->assertList($list);
        $values = array();
        foreach ($list[2] as $item) {
            $values[] = $this->normalizeValue($item);
        }
        $key = array_search($this->normalizeValue($value), $values);
        return false === $key ? false : $key + 1;
    }
titanscssc