PHP语法错误问题

PHP语法错误问题,php,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> <

我的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
            }
    ?>

//第82行..这给了我一个错误。。。
图像->属性['src'];?>“>//这也会给我带来错误。。。


感谢您的帮助!

您缺少外部foreach循环的右大括号。

您确定它不应该是$pod->attributes->title@Kolink现在它真的告诉你了吗?是的,它确实告诉你了,而且它是一个巨大的帮助,特别是在理解一个
T\u PAAMAYIM\u NEKUDOTAYIM
到底是什么方面。
<?php foreach ( $response->getPods() as $pod ) { 
      echo "<tr><td><h3>".$pod->attributes['title']."</h3>";
      foreach ( $pod->getSubpods() as $subpod ) {
          echo "<img src='".$subpod->image->attributes['src']."'><hr>";
      }
}?>