php <<< 用法

<?php

$render_chart = <<<RENDERCHART

 <!– START Script Block for Chart $chartId –>
 <div id=”$chartIdDiv” align=”center”>
  Chart.
 </div>
 <script type=”text/javascript”> 
  //Instantiate the Chart 
  var chart_$chartId = new FusionCharts(“$chartSWF”, “$chartId”, “$chartWidth”, “$chartHeight”, “$ndebugMode”, “$nregisterWithJS”);
  $tempData
  //Finally, render the chart.
  chart_$chartId.render(“$chartIdDiv”);
 </script> 
 <!– END Script Block for Chart $chartId –>
RENDERCHART;

  return $render_chart;

?>



发表评论

电子邮件地址不会被公开。 必填项已用*标注

62 − 52 =