作者orz811017 (orz811017)
看板PHP
标题[请益] PHP Array
时间Mon Jun 2 22:15:09 2014
各位大大安好
想请问
http://ppt.cc/OtRM
这图中为什麽 前者的 valeue->row[0] 会错误
可是 Echo 却是可以正确的输出
感觉echo对 前者没有道理不对 QQ
还是我双引号那边处理错误了吗....(我下面其他双引号之前compile会过
error是这样显示的
Catchable fatal error: Object of class stdClass could not be converted to
string
先谢谢大家
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.113.66.46
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/PHP/M.1401718511.A.D8C.html
※ 编辑: orz811017 (140.113.66.46), 06/02/2014 22:18:56
1F:→ MOONRAKER:SQL字串用 ' 夹起来就好,何必在双引号里面又用双引号 06/03 00:04
2F:→ MOONRAKER:在双引号内引用物件的安全方法是{$物件->属性} 06/03 00:06
3F:→ orz811017:感谢楼上大大的告知!!! 06/05 10:52