作者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
1F:→ MOONRAKER:''可以当阵列的引数(index) 你可以写$a['']='abcde'看看 10/22 18:37
2F:→ MOONRAKER:然後再echo $a['']看会有什麽 ''一样是合法字串 10/22 18:37