摘要:
方法一<?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 阅读全文
posted @ 2012-08-01 21:04
Epirus
阅读(153)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2012-08-01 14:52
Epirus
阅读(390)
评论(0)
推荐(0)
摘要:
1.$embed="this embed string"; so->$str2="fjweojfoiejwi{$embed}fewlk";2.fuction name(){ return "str";} $str1="fwejfowiej".name()."fjlejwl"; $str2="fjweo{$name()}fjweiofjweo"; 阅读全文
posted @ 2012-08-01 09:32
Epirus
阅读(140)
评论(0)
推荐(0)

浙公网安备 33010602011771号