您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php 取值-

2024/2/21 19:17:24发布23次查看
php 取值---在线等
echo $images
输出后是
{image_intro:images\/f201205281934101426092871.jpg,float_intro:,image_intro_alt:,image_intro_caption:,image_fulltext:,float_fulltext:,image_fulltext_alt:,image_fulltext_caption:}
怎么取出里面的值呢,如image_inrto
------解决方案--------------------
json_decode后,再取.
------解决方案--------------------
先把json格式转换成数组
------解决方案--------------------
不知道有种格式叫json么?
php code$str='{image_intro:images\/f201205281934101426092871.jpg,float_intro:,image_intro_alt:,image_intro_caption:,image_fulltext:,float_fulltext:,image_fulltext_alt:,image_fulltext_caption:}';$arr=json_decode($str,true);echo $arr['image_intro'];

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product