Did some tests and found out that scripts of type
$a=5;
function foo(){
global $a;
return $a +5;
}
foo();
have relatively bad performance ….
try to use something like
$a=5;
function foo($a){
return $a +5;
}
foo($a);
instead …
|
||||||
global or $_GLOBAL[] Versus local variablesDid some tests and found out that scripts of type
$a=5;
function foo(){
global $a;
return $a +5;
}
foo();
have relatively bad performance …. try to use something like
$a=5;
function foo($a){
return $a +5;
}
foo($a);
instead … Leave a Reply |
||||||
|
Copyright © 2012 are.ehibou.com - All Rights Reserved Powered by WordPress & Atahualpa |
||||||