$var1 = "as";
$var2 = "as";
$var3 = "as";
testme($var3);
function testme($var4){
global $var1;
echo $var1; // works
echo $var2; // works not
echo $var3; // works not
echo $var4; // works
}
function test($var) {
echo $var;
}
function testing() {
$var2 = $var+1;
echo $var2;
}
Quote
PolarFox wrote:
Use constants?
define("FOO", "something");
define($var, "something");
define($new, $var);
Quote
global $var1, var2;
$var1 = 5;
func(){
global $var1;
$newvar = $var1;
echo $newvar;
}
Category Forum
Suspected Bugs and Errors - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions