mirror of
https://github.com/moodle/moodle.git
synced 2025-02-04 07:09:19 +01:00
14 lines
235 B
PHP
14 lines
235 B
PHP
<?php
|
|
|
|
function lang_decode($s) {
|
|
$len = strlen($s);
|
|
$out = '';
|
|
for($i=0; $i < $len; $i++) {
|
|
$ch = ord($s[$i]);
|
|
$out .= $ch > 128 && $ch < 256 ? '&#'.(720 + $ch).';' : chr($ch);
|
|
}
|
|
return $out;
|
|
}
|
|
|
|
?>
|