Example #1
0
 /**
  * @name Charset
  * @author zhys9
  * @param string $charset utf8/utf-8/gbk/gb2312
  *
  */
 public function Charset($charset = 'utf8')
 {
     $charset = strtolower($charset);
     if (in_array($charset, array('utf8', 'utf-8', 'gb2312', 'gbk'))) {
         self::$charset = $charset;
     }
 }