我有代码
array( "name" => "Services Widget Description",
"desc" => "Max 500 character(Use new line for new Point)",
"std"=>"<ul>
<li>
Rebum corrumliit neglegentur sit at,
<img class='line22' width='243' height='2' alt='text line' src='images/text-line.jpg'>
</li>
</ul>"
),
URL是一个包含http://localhost/Junk
的变量,我想在src中使用这个变量,我试过这样的
array( "name" => "Services Widget Description",
"desc" => "Max 500 character(Use new line for new Point)",
"std"=>"<ul>
<li>
Rebum corrumliit neglegentur sit at,
<img class='line22' width='243' height='2' alt='text line' src=URL.'images/text-line.jpg'>
</li>
</ul>"
),
但没有用,请指导如何使用
答案 0 :(得分:0)
URL
是CONSTANT
而不是变量。
在代码URL
".URL."
array( "name" => "Services Widget Description",
"desc" => "Max 500 character(Use new line for new Point)",
"std"=>"<ul>
<li>
Rebum corrumliit neglegentur sit at,
<img class='line22' width='243' height='2' alt='text line' src='".URL."images/text-line.jpg'>
</li>
</ul>"
),