[請益] xtemplate 的 function

看板PHP作者 (東)時間12年前 (2013/10/22 18:08), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
我是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

10/22 18:37, , 1F
''可以當陣列的引數(index) 你可以寫$a['']='abcde'看看
10/22 18:37, 1F

10/22 18:37, , 2F
然後再echo $a['']看會有什麼 ''一樣是合法字串
10/22 18:37, 2F
文章代碼(AID): #1IPawRpq (PHP)
文章代碼(AID): #1IPawRpq (PHP)