mysqli 中的 $GLOBALS["___mysqli_ston"] 是什么

what is $GLOBALS["___mysqli_ston"] in mysqli

我是第一次尝试使用 mysqli。我有一个问题,什么是 $GLOBALS["___mysqli_ston"] ?你能告诉我吗?谷歌搜索时我没有得到任何直接答案

只是一个自定义全局变量。

看看。 http://php.net/manual/en/reserved.variables.globals.php

MySQLConverter 假定此全局变量设置为等于您的数据库连接对象;如果转换器找到 mysql_connect,它将(部分地,但带有警告)将您的代码转换为包含 $GLOBALS["___mysqli_ston"] 对 [=18= 结果的赋值的代码] 函数是这样的:

$link=($GLOBALS["___mysqli_ston"] = mysqli_connect($hostname, $username, $pwd));

另见 Changing from mysql to mysqli code error