getOption($v)) { switch ($c) { case 'b': $base = intval($v); break; case '__ambiguous': $this->resolveOptionAmbiguity($v); break; case 'h': case '?': default: return $this->usage(); } } $this->parser->listInputs($code); $char = Ustring::fromCode(base_convert($code, $base, 10)); echo $char; return; } /** * The command usage. * * @return int */ public function usage() { echo 'Usage : ustring:fromcode ', "\n", 'Options :', "\n", $this->makeUsageOptionsList([ 'b' => 'Specify the base of the code (16 by default).', 'help' => 'This help.' ]), "\n"; return; } } __halt_compiler(); Get a character from its code.