Baseball Freak
New member
I have a script that sorta goes like this:
~~~~~~~~~~
if (blah blah) {
if (blah) {
$a = 1;
if (blah) {
$a++;
// Do stuff here
}
}
$Class->someFunction($a);
}
~~~~~~~~~~
The problem is that when the scripts comes to the point to execute the function, it says the variable is undefined. How can I fix this?
~~~~~~~~~~
if (blah blah) {
if (blah) {
$a = 1;
if (blah) {
$a++;
// Do stuff here
}
}
$Class->someFunction($a);
}
~~~~~~~~~~
The problem is that when the scripts comes to the point to execute the function, it says the variable is undefined. How can I fix this?