Hi all,
I'm a long time C/C++/Java programmer, but a php novice. I was wondering if there's any issue with reundant imports.
For example, if I have
//bclass.php
import("aclass.php");
class B extends A
{
...
}
and
//dclass.php
import("aclass.php");
class D extends A
{
...
}
Will I run into problems if/when I have a situation where I need classes A, B, and D all in one file?
Is there some php equivalent to the typical
#ifndef CLASS_A
#define CLASS_A,
class A {...}
#endif
used in C++? Sorry if this seems like an obvious question, I'm still in the planning stages of my php project, so I have no real code to offer