0

我想将以下代码的输出转换为 PHP 中的字符串。

if( Is_Array( $Players ) ){
   foreach( $Players as $Player ) {
      echo "<tr>";echo "<td>";
      echo htmlspecialchars( $Player[ 'Name' ] );
      echo "</td>";
      echo "<td>";
      echo htmlspecialchars( $Player[ 'TimeF' ] );
      echo "</td>";
      echo "</tr>";
   }
} else {
   echo "<tr><td colspan='2' >No players in da house!</td></tr>";
}
4

1 回答 1

1

echo交换你所有的with实例$string.=

于 2013-01-30T03:49:18.683 回答