Function namespaceSplit

Split the namespace from the classname.

Commonly used like list($namespace, $className) = namespaceSplit($class);.

Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Core/functions.php
namespaceSplit( string $class )

Parameters summary

string $class The full class name, ie <code>Cake\Core\App</code>.

Returns

  • array Array with 2 indexes. 0 => namespace, 1 => classname.

© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/3.2/function-namespaceSplit.html