| @@ 17-22 (lines=6) @@ | ||
| 14 | * @param $options |
|
| 15 | * @return array |
|
| 16 | */ |
|
| 17 | function uchr($a) { |
|
| 18 | if (is_scalar($a)) $a= func_get_args(); |
|
| 19 | $str= ''; |
|
| 20 | foreach ($a as $code) $str.= html_entity_decode('&#'.$code.';',ENT_NOQUOTES,'UTF-8'); |
|
| 21 | return $str; |
|
| 22 | } |
|
| 23 | function b_lxentries_alpha_show($options) |
|
| 24 | { |
|
| 25 | global $xoopsDB, $xoopsUser, $xoopsModule; |
|
| @@ 408-419 (lines=12) @@ | ||
| 405 | * @param $initials |
|
| 406 | * @return string |
|
| 407 | */ |
|
| 408 | public static function getUchr($initials) |
|
| 409 | { |
|
| 410 | if (is_scalar($initials)) { |
|
| 411 | $initials = func_get_args(); |
|
| 412 | } |
|
| 413 | $str = ''; |
|
| 414 | foreach ($initials as $init) { |
|
| 415 | $str .= html_entity_decode('&#' . $init . ';', ENT_NOQUOTES, 'UTF-8'); |
|
| 416 | } |
|
| 417 | ||
| 418 | return $str; |
|
| 419 | } |
|
| 420 | ||
| 421 | /* sample */ |
|
| 422 | /* |
|
| @@ 190-196 (lines=7) @@ | ||
| 187 | * don't take credit for this. |
|
| 188 | * |
|
| 189 | */ |
|
| 190 | function lx_uchr ($initials) { |
|
| 191 | if (is_scalar($initials)) $initials= func_get_args(); |
|
| 192 | $str= ''; |
|
| 193 | foreach ($initials as $init) $str.= html_entity_decode('&#'.$init.';',ENT_NOQUOTES,'UTF-8'); |
|
| 194 | ||
| 195 | return $str; |
|
| 196 | } |
|
| 197 | /* sample */ |
|
| 198 | /* |
|
| 199 | echo lx_uchr(23383); echo '<br/>'; |
|