public function getLanguages()
    {
        $source = $this->server['HTTP_ACCEPT_LANGUAGE'];

        if (strpos($source, ',') !== false) {
            $langs = explode(',', $source);
            return $langs;
        } else {
            return array($source);
        }
    }
public function getLanguages()
    {
        $source = $this->server['HTTP_ACCEPT_LANGUAGE'];

        if (strpos($source, ',') !== false) {
            $langs = explode(',', $source);
            return $langs;
        } else {
            return array($source);
        }
    }
public function getLanguages ( ) { $ source = $ this -> server [ 'HTTP_ACCEPT_LANGUAGE' ] ; if ( strpos ( $ source , ',' ) !== false ) { $ langs = explode ( ',' , $ source ) ; return $ langs ; } else { return array ( $ source ) ; } }
Returns all available languages supported by browser

@return array
Returns all available languages supported by browser