public function getSubdomains()
    {
        $current = $this->server['HTTP_HOST'];
        $parts = explode('.', $current);

        // two steps back
        array_pop($parts);
        array_pop($parts);

        return $parts;
    }
public function getSubdomains()
    {
        $current = $this->server['HTTP_HOST'];
        $parts = explode('.', $current);

        // two steps back
        array_pop($parts);
        array_pop($parts);

        return $parts;
    }
public function getSubdomains ( ) { $ current = $ this -> server [ 'HTTP_HOST' ] ; $ parts = explode ( '.' , $ current ) ; // two steps back array_pop ( $ parts ) ; array_pop ( $ parts ) ; return $ parts ; }
Returns all sub-domains

@return array
Returns all sub - domains