public static function lastIndexOf($array, $item)
    {
        if (is_array($array))
            return ($keys = array_keys($array, $item, false)) ? array_pop($keys) : -1;

        $found = -1;
        $search = $item;
        static::each($array, function($item, $key) use ($search, & $found) {
            if ($item == $search)
                $found = $key;
        });

        return $found;
    }