diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2002-01-25 09:01:02 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2002-01-25 09:01:02 +0000 |
commit | 0d139d3c27aa8eb971f79fafae20491870d84c3c (patch) | |
tree | d7f93c086f51c3b23ebffbbb30701d5fbd577da9 /Zend/zend_opcode.c | |
parent | 22b1b4547fc640cc0757145bb250732d1d1dd141 (diff) | |
download | php-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