public function shorten($num) {
		$str = '';

		while ($num > 0) {
			$str = $this->alphabet[($num % $this->base)] . $str;
			$num = (int) ($num / $this->base);
		}

		return $str;
	}
public function shorten($num) {
		$str = '';

		while ($num > 0) {
			$str = $this->alphabet[($num % $this->base)] . $str;
			$num = (int) ($num / $this->base);
		}

		return $str;
	}
public function shorten ( $ num ) { $ str = '' ; while ( $ num > 0 ) { $ str = $ this -> alphabet [ ( $ num % $ this -> base ) ] . $ str ; $ num = ( int ) ( $ num / $ this -> base ) ; } return $ str ; }
Converts the specified integer ID to a short string

This is done by performing a (bijective) base conversion

@param int $num the integer ID to convert
@return string the short string
Converts the specified integer ID to a short string