1
我得到这个奇怪的问题,我的PHP脚本。PHP语法错误问题
我
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING
in simpleTest.php on line 82
我不知道为什么我的代码不工作。
<?php
foreach ($response->getPods() as $pod) {
?>
<tr>
<td>
<h3><?php echo $pod->attributes['title']; ?></h3> //line 82..this gives me error...
<?php
foreach ($pod->getSubpods() as $subpod) {
?>
<img src="<?php echo $subpod->image->attributes['src']; ?>"> //this would gives me error too...
<hr>
<?php
}
?>
感谢您的帮助!
关闭所有foreach循环 –
你确定它不应该是$ pod-> attributes-> title – jtheman
@Kolink现在它确实告诉你了吗? – Songo