解决乱码: header("Content-Type: text/html;charset=utf-8"); 单词 局部的: local 全局的: global 静态的: static 参数: parameter 工具: implements 关键字 定义常量: const 类的创建: class 对象的创建: new 公开的: public 受保护的: protected 私有的: private 继承类: extends 拒绝重载: final 访问父级的常量.方法.静态属性: p
进入服务器目录 [root@VM_139_218_centos /]# cd ~ [root@VM_139_218_centos ~]# vim .vimrc 在 .vimrc 文件中写入以下代码: set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 然后打开php文件,乱码消失,可以正常使用了.