我是PHP的新手,我的问题是我想传递表格中的键/值。还有其他方法可以吗?谢谢!
以下是我的代码:
<?php
$array = array(
"Salary of Mr. A is " => "1000$",
"Salary of Mr. B is " => "1200$",
"Salary of Mr. C is " => "1400$");
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table border="1">
<tr>
<td><?= $array[0]; ?></td>
<td><?= $array["Salary of Mr. A is "]; ?></td>
</tr>
<tr>
<td></td>
<td><?= $array["Salary of Mr. B is "]; ?></td>
</tr>
<tr>
<td></td>
<td><?= $array["Salary of Mr. C is "]; ?></td>
</tr>
</table>
</body>
</html>
答案 0 :(得分:1)
另一种方式是
if ($comet !== $string)
答案 1 :(得分:0)
尝试使用foreach循环,保存您的作品和时间。
grouping