Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Andrew Falanga
March 30, 2008, 12:14 am
rate this thread
both contain classes that derive from the base class in file1. I'm
running in to a redefinition problem when I'm loading the files. What
I'd like is something like this:
// defining stuff
// doing important stuff
//doing important stuff
Then in the "main" files I have:
// do important stuff
Now, I'm getting the redefinition problem here. In C or C++, I'd do:
// code here
Is there something that would do this php? I haven't actually tried
wrapping the base class definition in a conditional because I thought
I remember reading that PHP uses the same scope rules as C and C++.
If I define something inside the scope of a conditional, that
something goes out of existence when that scope moves out. Is this
true, or would a conditional be the answer?