This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You may have wondered how a PHP function defined as below behaves: | |
function &config_byref() | |
{ | |
static $var = "hello"; | |
return $var; | |
} | |
// the value we get is "hello" | |
$byref_initial = config_byref(); |