When I user the instanceof keyword for the Singleton class in Ch07 page 218, it is returning true. See below.
// Create a second object to confirm:
$TEST = Config::getInstance();
// see what instanceof thinks...
if ($TEST instanceof Config) {
echo '<pre>$TEST IS instance of Config</p>';
}
else
{
echo '<pre>$TEST IS NOT instance of Config</p>';
}
It is echoing that $TEST IS instance of Config. Am I doing something wrong?