php utf-8
header(”Content-Type: text/html; charset=UTF-8″)
控制器控釋模板輸出:
值:
array (size=8)1 => array (size=4)'customer_id' =>string
'1' (length=1)'customer_name' =>string
'澶ч箯' (length=6)'customer_phone' =>string
'18122384483' (length=11)'customer_company' =>string
'澶х偖鍏徃' (length=12)控制器:
$b = M('customer')->getfield('customer_id,customer_name,customer_phone,customer_company',true);
$this->assign('aaa',$b);
$this->display();
模板:
<h1>{$aaa.1.customer_name}</h1>
轉(zhuǎn)載于:https://www.cnblogs.com/laijinquan/p/7306171.html
總結(jié)
- 上一篇: 散列表的实现
- 下一篇: 求 1 到 n 的所有数的约数和