Xhgui_Profile::splitName PHP Method

splitName() public method

Split a key name into the parent==>child format.
public splitName ( string $name ) : array
$name string The name to split.
return array An array of parent, child. parent will be null if there is no parent.
    public function splitName($name)
    {
        $a = explode("==>", $name);
        if (isset($a[1])) {
            return $a;
        }
        return array(null, $a[0]);
    }