瀏覽代碼

phpdoc block

tokul 21 年之前
父節點
當前提交
9de6aa7e28
共有 1 個文件被更改,包括 15 次插入7 次删除
  1. 15 7
      functions/encode/utf_8.php

+ 15 - 7
functions/encode/utf_8.php

@@ -1,12 +1,20 @@
 <?php
 <?php
 /**
 /**
-* takes a string of unicode entities and converts it to a utf-8 encoded string
-* each unicode entitiy has the form &#nnn(nn); n={0..9} and can be displayed by utf-8 supporting
-* browsers.  Ascii will not be modified.
-* @param $source string of unicode entities [STRING]
-* @return a utf-8 encoded string [STRING]
-* @access public
-*/
+ * utf-8 encoding function
+ *
+ * takes a string of unicode entities and converts it to a utf-8 encoded string
+ * each unicode entitiy has the form &#nnn(nn); n={0..9} and can be displayed by utf-8 supporting
+ * browsers.  Ascii will not be modified.
+ *
+ * code is taken from www.php.net manual comments
+ * Author: ronen at greyzone dot com
+ *
+ * @package squirrelmail
+ * @subpackage encode
+ * @param $source string of unicode entities [STRING]
+ * @return a utf-8 encoded string [STRING]
+ * @access public
+ */
 function charset_encode_utf_8 ($source) {
 function charset_encode_utf_8 ($source) {
    $utf8Str = '';
    $utf8Str = '';
    $entityArray = explode ("&#", $source);
    $entityArray = explode ("&#", $source);