我有这个代码->
<?php
$savearray = $this->savedlist;
$selectdata = new stdClass;
$selectdata->id='';
$selectdata->title=JText::_('BLA_BLA_BLA');
array_push($savearray, $selectdata);
$savearray = array_reverse($savearray);
echo JHTML::_('select.genericlist',$savearray,'savedlist','class="inputbox"','id','title','');
?>
我想添加到$selectdata->title=JText::_('BLA_BLA_BLA');
这段代码echo count($this->savedlist)
所以我想要实现的是->
$selectdata->title=JText::_('BLA_BLA_BLA') . echo count($this->savedlist);
它不起作用$selectdata->title=JText::_('BLA_BLA_BLA') . echo count($this->savedlist);
,有人可以帮助我吗,我怎样才能在“BLA_BLA_BLA”文本附近添加“计数”代码..?
谢谢