| @@ 460-465 (lines=6) @@ | ||
| 457 | } |
|
| 458 | echo "</select></div>"; |
|
| 459 | } |
|
| 460 | function uchr($a) { |
|
| 461 | if (is_scalar($a)) $a= func_get_args(); |
|
| 462 | $str= ''; |
|
| 463 | foreach ($a as $code) $str.= html_entity_decode('&#'.$code.';',ENT_NOQUOTES,'UTF-8'); |
|
| 464 | return $str; |
|
| 465 | } |
|
| @@ 14-19 (lines=6) @@ | ||
| 11 | * @param $options |
|
| 12 | * @return array |
|
| 13 | */ |
|
| 14 | function uchr($a) { |
|
| 15 | if (is_scalar($a)) $a= func_get_args(); |
|
| 16 | $str= ''; |
|
| 17 | foreach ($a as $code) $str.= html_entity_decode('&#'.$code.';',ENT_NOQUOTES,'UTF-8'); |
|
| 18 | return $str; |
|
| 19 | } |
|
| 20 | function b_lxentries_alpha_show($options) |
|
| 21 | { |
|
| 22 | global $xoopsDB, $xoopsUser, $xoopsModule; |
|
| @@ 420-431 (lines=12) @@ | ||
| 417 | * @param $initials |
|
| 418 | * @return string |
|
| 419 | */ |
|
| 420 | public static function getUchr($initials) |
|
| 421 | { |
|
| 422 | if (is_scalar($initials)) { |
|
| 423 | $initials = func_get_args(); |
|
| 424 | } |
|
| 425 | $str = ''; |
|
| 426 | foreach ($initials as $init) { |
|
| 427 | $str .= html_entity_decode('&#' . $init . ';', ENT_NOQUOTES, 'UTF-8'); |
|
| 428 | } |
|
| 429 | ||
| 430 | return $str; |
|
| 431 | } |
|
| 432 | ||
| 433 | /* sample */ |
|
| 434 | /* |
|
| @@ 188-194 (lines=7) @@ | ||
| 185 | * don't take credit for this. |
|
| 186 | * |
|
| 187 | */ |
|
| 188 | function lx_uchr ($initials) { |
|
| 189 | if (is_scalar($initials)) $initials= func_get_args(); |
|
| 190 | $str= ''; |
|
| 191 | foreach ($initials as $init) $str.= html_entity_decode('&#'.$init.';',ENT_NOQUOTES,'UTF-8'); |
|
| 192 | ||
| 193 | return $str; |
|
| 194 | } |
|
| 195 | /* sample */ |
|
| 196 | /* |
|
| 197 | echo lx_uchr(23383); echo '<br/>'; |
|