CH14,P272,练习一,编码转化类---不大会应用
来源:互联网 发布:java 键值对 常量 编辑:程序博客网 时间:2024/05/17 06:16
<?phperror_reporting(E_ALL ^E_NOTICE);class changecode{ private $str; private $input; private $output; function __construct($input='',$output='gb2312'){ $this->input = $input; $this->output = $output; } protected function chgcode($str){ if($this->input != ''){ $this->str = iconv($input,$output,$str); }else{ $this->str = mb_convert_encoding($str,$output); } } function getStr($str){ $this->chgcode($str); return $this->str; } function setInput($input){ $this->input = $input; } function setOutput($output){ $this->output = $output; } function getInput(){ return $this->input; } function getOutput(){ return $this->output; }}$contents = new changecode('utf8','gb2312');echo $contents ->getStr('下里巴人');?>
0 0
- CH14,P272,练习一,编码转化类---不大会应用
- CH14,P272,练习二
- 不大会用
- 不大会,测试一下
- 霍夫曼编码的应用练习
- 上了会校友录,突然感到不大爽耶
- 以后应该不大会在这里写文章了
- 不方便的事情,人们都不大会去做
- 专家:雾霾天PM2.5会渗进室内 里外差别不大
- 编码练习
- 数据结构 二叉树应用:赫夫曼编码一
- 零基础HTML及CSS编码练习(一)
- 编码转化的问题
- 字符编码转化
- 编码转化问题
- 编码的转化
- Base64编码转化
- C++编码转化
- Android studio如何生成aar包
- 三分钟学会使用Git——命令行(一)
- 蓝鸥iOS从零基础到精通就业-C语言入门 10冒泡排序
- OpenCV中parallel_for 和 parallel_for_学习笔记
- CentOS sendmail via gmail with attachment
- CH14,P272,练习一,编码转化类---不大会应用
- 单例模式的实现
- BPM与 SAP & Oracle EBS集成解决方案分享
- 使用PHP导入和导出CSV文件
- openssl error while loading shared libraries: libssl.so.1.1
- [乐意黎转载]如何将phantomjs单独部署在服务端
- 图模型推荐
- 关于泰勒展开
- Sublime text3 连接sftp/ftp(远程服务器)