Just include the formChecker class formChecker immediately before the class you want to use, for example:
include "formChecker.php" class runFormChecker{ function __construct() { $obj = new formChecker;
If, however, you have both classes in one file (which is bad), then there is no need to include the file, you can instantiate this example, for example:
class formChecker{
More info here ....
Thanks:)
Sarfraz
source share