作者gn01958627 (東)
看板PHP
標題[請益] xtemplate 的 function
時間Tue Oct 22 18:08:21 2013
我是PHP新手 我看到 xtemplate.class.php 中
http://www.phpxtemplate.org/pipermail/xtpl-svn/2007-January/000006.html
public function set_null_string($str, $varname = '') {
$this->_null_string[$varname] = $str;
}
其中的 $_null_string
protected $_null_string = array('' => '');
請問上面這一段是什麼意思? 陣列中 空白等於空白?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.124.7.80
→ MOONRAKER:''可以當陣列的引數(index) 你可以寫$a['']='abcde'看看 10/22 18:37
→ MOONRAKER:然後再echo $a['']看會有什麼 ''一樣是合法字串 10/22 18:37