What do commas mean in a variable declaration?

时光怂恿深爱的人放手 提交于 2020-02-03 10:27:29

问题


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?


回答1:


It's the same as:

static $tc = false;
static $e1;
static $e1_img;

So $tc received false.



来源:https://stackoverflow.com/questions/41383218/what-do-commas-mean-in-a-variable-declaration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!