private function getURL($array, $key)
    {
        $countArray = $this->array_depth($array) - 1;
        switch ($countArray) {
            case 1:
                $url = $array['geen']['url'];
                $id = $array['geen']['id'];
                $class = $array['geen']['class'];
                $attrib = $array['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 2:
                $url = $array['geen']['geen']['url'];
                $id = $array['geen']['geen']['id'];
                $class = $array['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 3:
                $url = $array['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 4:
                $url = $array['geen']['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            default:
                $url = $array['geen']['geen']['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
        }
    }
private function getURL($array, $key)
    {
        $countArray = $this->array_depth($array) - 1;
        switch ($countArray) {
            case 1:
                $url = $array['geen']['url'];
                $id = $array['geen']['id'];
                $class = $array['geen']['class'];
                $attrib = $array['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 2:
                $url = $array['geen']['geen']['url'];
                $id = $array['geen']['geen']['id'];
                $class = $array['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 3:
                $url = $array['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            case 4:
                $url = $array['geen']['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
            default:
                $url = $array['geen']['geen']['geen']['geen']['geen']['url'];
                $id = $array['geen']['geen']['geen']['geen']['geen']['id'];
                $class = $array['geen']['geen']['geen']['geen']['geen']['class'];
                $attrib = $array['geen']['geen']['geen']['geen']['geen']['attrib'];
                return [$url, $id, $class, $attrib];
        }
    }
private function getURL ( $ array , $ key ) { $ countArray = $ this -> array_depth ( $ array ) - 1 ; switch ( $ countArray ) { case 1 : $ url = $ array [ 'geen' ] [ 'url' ] ; $ id = $ array [ 'geen' ] [ 'id' ] ; $ class = $ array [ 'geen' ] [ 'class' ] ; $ attrib = $ array [ 'geen' ] [ 'attrib' ] ; return [ $ url , $ id , $ class , $ attrib ] ; case 2 : $ url = $ array [ 'geen' ] [ 'geen' ] [ 'url' ] ; $ id = $ array [ 'geen' ] [ 'geen' ] [ 'id' ] ; $ class = $ array [ 'geen' ] [ 'geen' ] [ 'class' ] ; $ attrib = $ array [ 'geen' ] [ 'geen' ] [ 'attrib' ] ; return [ $ url , $ id , $ class , $ attrib ] ; case 3 : $ url = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'url' ] ; $ id = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'id' ] ; $ class = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'class' ] ; $ attrib = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'attrib' ] ; return [ $ url , $ id , $ class , $ attrib ] ; case 4 : $ url = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'url' ] ; $ id = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'id' ] ; $ class = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'class' ] ; $ attrib = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'attrib' ] ; return [ $ url , $ id , $ class , $ attrib ] ; default : $ url = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'url' ] ; $ id = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'id' ] ; $ class = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'class' ] ; $ attrib = $ array [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'geen' ] [ 'attrib' ] ; return [ $ url , $ id , $ class , $ attrib ] ; } }
Private function to get the URL linked with the menu item

@param array $array
@param string $key
@return array
Private function to get the URL linked with the menu item