摘要:
方法一<?phpheader('Content-type:text/html; charset=gb2312');echo "这样输出就不会乱码";$abc = "这样就会乱码了";echo $abc;?>方法二<?phpecho "这样输出就不会乱码";$abc = "这样就会乱码了";echo html_entity_decode($abc, ENT_QUOTES, 'gb2312');echo $abc;?>加入 <HEAD> 中<?e 阅读全文
摘要:
1.$mysql = new SaeMysql(); sql = "select * from CostList"; $data=$mysql->getData($sql);print_r($data);$mysql->closeDb()2. $newsql="insert into costlist(name,sum,cost,balance,information) values('$User','400','$Costs','$balance','$Information 阅读全文
摘要:
1.$embed="this embed string"; so->$str2="fjweojfoiejwi{$embed}fewlk";2.fuction name(){ return "str";} $str1="fwejfowiej".name()."fjlejwl"; $str2="fjweo{$name()}fjweiofjweo"; 阅读全文