0

我有代码

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>"
),

但是没用,请指导如何使用

4

1 回答 1

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>"
),
于 2012-08-23T06:36:19.173 回答