1.对于php的代码出现乱码
<?php
header("content-type:text/html;charset=utf-8");
//$name 是一个人名
$name='saber';
$sex=" $name 是一个男孩子";
echo $sex;
?>
插入
header("content-type:text/html;charset=utf-8");
这段代码就ok。
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!