I hate using global variables this way in functions, but it can be done.
$val)
global $pos;
// reset of your code.
}
?>
there are good reasons for global variables, but use them wisely, globals
are offten missused and create illegible code. most variables should be
p
Hi everybody,
Is it possible (and if it is, how) to globalize all the variables, that
come from some form, automatically?
For example:
function do_something(){
global $form;
if($form != "func"){
/* globalize all the variables that come from a form
called $form .
2 matches
Mail list logo