Use of php variable $_ (dollar sign followed by an underscore)
问题 Is that really true that i can use $_ as a dummy variable in foreach loop if there is no need for $value in foreach($array as $key => $value) ? I could not find any useful information that proves this except PHP syntax formatting. There's a special case for foreach loops when the value is not used inside the loop. In this case the dummy variable $_ (underscore) is used: foreach ($GLOBALS['TCA'] as $table => $_) { // Do something with $table } This is done for performance reasons, as it is