public static function splitStrictClassPath(
        $strictClassPath = '')
    {
        // Split on the rightmost backslash. In a strict path there's always at
        // least one backslash, for the leading "global namespace" backslash.
        $lastDelimPos = strrpos($strictClassPath, '\\');
        // Global: "". Other: "\Foo" or "\Foo\Bar" (if nested namespaces).
        $namespace = substr($strictClassPath, 0, $lastDelimPos);
        // Always: "TheClass".
        $class = substr($strictClassPath, $lastDelimPos + 1);

        return [
            'namespace' => $namespace,
            'class'     => $class,
        ];
    }
public static function splitStrictClassPath(
        $strictClassPath = '')
    {
        // Split on the rightmost backslash. In a strict path there's always at
        // least one backslash, for the leading "global namespace" backslash.
        $lastDelimPos = strrpos($strictClassPath, '\\');
        // Global: "". Other: "\Foo" or "\Foo\Bar" (if nested namespaces).
        $namespace = substr($strictClassPath, 0, $lastDelimPos);
        // Always: "TheClass".
        $class = substr($strictClassPath, $lastDelimPos + 1);

        return [
            'namespace' => $namespace,
            'class'     => $class,
        ];
    }
public static function splitStrictClassPath ( $ strictClassPath = '' ) { // Split on the rightmost backslash. In a strict path there's always at // least one backslash, for the leading "global namespace" backslash. $ lastDelimPos = strrpos ( $ strictClassPath , '\\' ) ; // Global: "". Other: "\Foo" or "\Foo\Bar" (if nested namespaces). $ namespace = substr ( $ strictClassPath , 0 , $ lastDelimPos ) ; // Always: "TheClass". $ class = substr ( $ strictClassPath , $ lastDelimPos + 1 ) ; return [ 'namespace' => $ namespace , 'class' => $ class , ] ; }
Splits a strict class-path into its namespace and class name components.

To rejoin them later, just use: `'namespace' + '\\' + 'class'`.

The class path should be in `get_class()` aka `TheClass::class` format.

@param string $strictClassPath Class output of `createStrictClassPath()`.

@return array Associative array with keys for `namespace` and `class`.

@see Utilities::createStrictClassPath()
Splits a strict class - path into its namespace and class name components .