【发布时间】:2015-03-20 16:31:02
【问题描述】:
我正在尝试做的示例:
<?php
$html_element = '<form><label>country</label><select>'.include_once("country_list.php").'</select></form>';
?>
我已经尝试了以上和以下:
<?php
$html_element = '<form><label>country</label><select><?php include_once("country_list.php"); ?></select></form>';
?>
当然,“$html_element”稍后会在某个 div 中回显。那么如何在这个 php 字符串变量中包含“country_list.php”,以便正确拉取?
【问题讨论】:
标签: php html string variables include