Tomas Tintera wrote:
Richard Lynch wrote:
Perhaps something like this:
function my_unset($var){
global $$var;
$wasset = isset($$var);
unset($$var);
return $wasset;
}
my_unset(a); //unset($a);
Or, in a more general way:
function forcereturn ($php){
Tomas Tintera wrote:
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't
Richard Lynch wrote:
Perhaps something like this:
function my_unset($var){
global $$var;
$wasset = isset($$var);
unset($$var);
return $wasset;
}
my_unset(a); //unset($a);
Or, in a more general way:
function forcereturn ($php){
return eval($php);
}
Damned if I understand *why* you want
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other
5 matches
Mail list logo