Wednesday, 24 October 2018

php - 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?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...