Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do commas mean in a variable declaration?

Tags:

syntax

php

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?

like image 443
porton Avatar asked Dec 18 '25 13:12

porton


1 Answers

It's the same as:

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

So $tc received false.

like image 123
BizzyBob Avatar answered Dec 21 '25 03:12

BizzyBob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!