When execute below code
<?php
$cfg=array();
$curpath=array();
$name="check";
array_push($curpath, strtolower($name));
$ptr =& $cfg;
/*what happens here*/
$ptr =& $ptr[$name];
print("\ncfg\n");
print_r($cfg);
?>
``
output below after execution of above code:
cfg
Array ( [check] => )
Pls explain below statements:
$ptr =& $cfg;
/*what happens here*/
$ptr =& $ptr[$name];