Home >php教程 >php手册 >转换数组的编码格式

转换数组的编码格式

WBOY
WBOYOriginal
2016-06-06 19:35:401207browse

/* *转换数据格式编码 *参数分别是:原编码,输出编码格式,要转换的数组 *returnarray *author:www.e2003.net */ 无 /* * 转换数据格式编码 * 参数分别是:原编码,输出编码格式,要转换的数组 * return array * author:www.e2003.net */function array_icon

/*
 * 转换数据格式编码
 * 参数分别是:原编码,输出编码格式,要转换的数组
 * return array
 * author:www.e2003.net
 */
/*
 * 转换数据格式编码
 * 参数分别是:原编码,输出编码格式,要转换的数组
 * return array
 * author:www.e2003.net
 */
function array_iconv($in_charset,$out_charset,$array){
	return eval('return '.iconv($in_charset,$out_charset,var_export($array,true).';'));
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:无限分类,一起学习吧Next article:Pfinal框架更新