18 Apr 2018
```php
$classPath = \explode(“\”, NAMESPACE);
\array_pop($classPath);
$newPath = \implode(“\”, $classPath) . “\Drivers\”;
$className = $newPath . Str::studly($this->driver);
if (!\class_exists($className)) {
throw new DriverException(‘Could not find driver’);
}
09 Apr 2018
```php
const FLAG_1 = 0b0001; // 1
const FLAG_2 = 0b0010; // 2
const FLAG_3 = 0b0100; // 4
const FLAG_4 = 0b1000; // 8
// Can you see the pattern? ;-)
13 Feb 2018
In PHP, the global space refers to the highest level of the PHP namespace hierarchy. It is also known as the global scope or global namespace. When you define variables, functions, classes, or constants outside of any namespaces, they are considered to be part of the global space.