我想将以下代码的输出转换为 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>";
}