有没有办法在HTML标签内打印php变量?如何在<a>标签内打印php信息?
像这样:
<?php
for ($e = 1; $e <= 30; $e++) {
for ($i = 1; $i <= 40; $i++) {
print ('<div id="map"><a>$i</a></div>'); // <----I'm adding the divs here, but I want to add a text inside each of them
}
}
?>
它做到了! 我不经常使用php,所以这种类型的thigs完全不在我心中!谢谢 – Marco 2012-01-09 21:07:42