public function unshorten($str) {
		$num = 0;
		$len = strlen($str);

		for ($i = 0; $i < $len; $i++) {
			$num = $num * $this->base + strpos($this->alphabet, $str[$i]);
		}

		return $num;
	}
public function unshorten($str) {
		$num = 0;
		$len = strlen($str);

		for ($i = 0; $i < $len; $i++) {
			$num = $num * $this->base + strpos($this->alphabet, $str[$i]);
		}

		return $num;
	}
public function unshorten ( $ str ) { $ num = 0 ; $ len = strlen ( $ str ) ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) { $ num = $ num * $ this -> base + strpos ( $ this -> alphabet , $ str [ $ i ] ) ; } return $ num ; }
Converts the specified short string to an integer ID

This is done by performing a (bijective) base conversion

@param string $str the short string to convert
@return int the integer ID
Converts the specified short string to an integer ID