返回

php utf-8

发布时间:2022-09-27 20:42:18 299
# html# php

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>

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像
精选文章
thumb 中国研究员首次曝光美国国安局顶级后门—“方程式组织”
thumb 俄乌线上战争,网络攻击弥漫着数字硝烟
thumb 从网络安全角度了解俄罗斯入侵乌克兰的相关事件时间线
下一篇
php口红商城销售购物系统毕业设计 2022-09-27 20:26:31