What do commas mean in a variable declaration?
I've found this in includes/parser/Parser.php
of MediaWiki PHP source:
public function replaceInternalLinks2( &$s ) {
global $wgExtraInterlanguageLinkPrefixes;
static $tc = false, $e1, $e1_img;
//...
}
What is this comma delimited list? What value $tc
receives?
It's the same as:
static $tc = false;
static $e1;
static $e1_img;
So $tc
received false
.
上一篇: PHP(美元美元或双倍美元)在PHP中意味着什么?
下一篇: 逗号在变量声明中的含义是什么?