【发布时间】:2014-02-04 02:02:08
【问题描述】:
例如,我知道你可以从 " 到 ' 但还有第三个吗?
我正在制作一个 $form 变量,我需要 3 级引号
$form = "<table id ='create_school_table'>
<tr>
<td>school name:</td>
<td><input type = 'text' maxlength='50' name='school_name' style='width: 174px;'/></td>
</tr>
<tr>
<td>state:</td>
<td><select name='state'>
<?php foreach ($states as $state) : ?>
//THIS NEXT LINE IS TRIPPING ME UP
<option value='<?php echo $state['state_name']; ?>'>
<?php echo $state['state_name']; ?>
</option>
<?php endforeach; ?>
</select></td>
</tr>
<tr>
<td></td>
<td><input type='button' value='add school' name='submitbtn' onclick='execute_add_school()' /></td>
</tr>
</table>"
【问题讨论】:
-
看看这个:php.net/manual/en/…