PHP explode函数乱码问题解决方法

日期:2014-11-26 分类:网络技术 浏览:7936 来源:邦明科技


PHP explode函数乱码问题解决方法


这样就会出现乱码:

    $customertype=explode("=",trim($_POST['customertype']));

    $customertype=$customertype[0];

    $customerlevel=$customertype[1];


这样不出现乱码:

    $abc=explode("=",trim($_POST['customertype']));

    $customertype=$abc[0];

    $customerlevel=$abc[1];


原来是代码写错了



上一篇: CSS导航下拉菜单被JS幻灯片挡住的解决办法

下一篇: PHP MVC框架最简单的教程实例代码


QQ客服

客服微信