Confusion in PHP variables -
can use same variable name in php used data. example: variable $_get['v']
, can use $v
variable other purpose or lead ambiguity?
$_get['v']
, $v
in no way tied , occupy different memory. can use both names.
if change default php configuration enable register_globals
, $v created $_get['v']
if such query string parameter existed, still overwrite , use separate variable.
register_globals
has not been enabled in default php configuration several years.
Comments
Post a Comment