summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2002-01-25 09:01:02 +0000
committerRasmus Lerdorf <rasmus@php.net>2002-01-25 09:01:02 +0000
commit0d139d3c27aa8eb971f79fafae20491870d84c3c (patch)
treed7f93c086f51c3b23ebffbbb30701d5fbd577da9 /Zend/zend_opcode.c
parent22b1b4547fc640cc0757145bb250732d1d1dd141 (diff)
downloadphp-git-0d139d3c27aa8eb971f79fafae20491870d84c3c.tar.gz
(extraxt) add EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flags
@- Added EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flags to extract() @ EXTR_IF_EXISTS only extracts a variable if it already exists @ EXTR_PREFIX_IF_EXISTS only extracts the variable if it exists and @ then it prepends the prefix to it. ie. if $PATH exists then @ extract($_ENV,EXTR_PREFIX_IF_EXISTS,'e') would result in $e_PATH @ This lets you do $a = $b = $c = true; extract($_REQUEST,EXTR_IF_EXISTS); @ and you only get the global request variables you have defined imported @ into your symbol table. (Rasmus)
Diffstat (limited to 'Zend/zend_opcode.c')
0 files changed, 0 insertions, 0 deletions