static public function decode($number)
    {
        $k = self::$encoder;
        preg_match_all('/[1][a-zA-Z]|[2-9]|[a-zA-Z]|[0]/', $number, $a);
        $n = '';
        $o = count($k);
        foreach ($a[0] as $i) {
            $f = preg_match('/1([a-zA-Z])/', $i, $v);
            if ($f == true) {
                $i = $o + array_search($v[1], $k);
            } else {
                $i = array_search($i, $k);
            }
            $n .= $i;
        }
        return $n;
    }
static public function decode($number)
    {
        $k = self::$encoder;
        preg_match_all('/[1][a-zA-Z]|[2-9]|[a-zA-Z]|[0]/', $number, $a);
        $n = '';
        $o = count($k);
        foreach ($a[0] as $i) {
            $f = preg_match('/1([a-zA-Z])/', $i, $v);
            if ($f == true) {
                $i = $o + array_search($v[1], $k);
            } else {
                $i = array_search($i, $k);
            }
            $n .= $i;
        }
        return $n;
    }
static public function decode ( $ number ) { $ k = self :: $ encoder ; preg_match_all ( '/[1][a-zA-Z]|[2-9]|[a-zA-Z]|[0]/' , $ number , $ a ) ; $ n = '' ; $ o = count ( $ k ) ; foreach ( $ a [ 0 ] as $ i ) { $ f = preg_match ( '/1([a-zA-Z])/' , $ i , $ v ) ; if ( $ f == true ) { $ i = $ o + array_search ( $ v [ 1 ] , $ k ) ; } else { $ i = array_search ( $ i , $ k ) ; } $ n .= $ i ; } return $ n ; }
Decodes a string into an integer

@param string $number string to decode into an integer

@return int
Decodes a string into an integer