PHP函数iconv()编码转换

PHP函数iconv()编码转换<br />   <br /> &lt;?php <br /> function gbk2utf($string) { <br /> $out = iconv( &quot;gb2312&quot;, &quot;UTF-8&quot; , $string); <br /> return $out; <br /> } <br /> <br /> function utf2gbk($string) { <br /> $out = iconv( &quot;UTF-8&quot;, &quot;gb2312&quot; , $string); <br /> return $out; <br /> }?&gt;<br />
RangeTime:0.005817s
RangeMem:203.98 KB
返回顶部 留言