public function lang()
    {
        $accept_language = $this->getHeader('accept_language');

        $language = explode(',', explode(';', $accept_language)[0])[0];

        preg_match('/([a-z]+)/', $language, $match);

        return end($match);
    }
public function lang()
    {
        $accept_language = $this->getHeader('accept_language');

        $language = explode(',', explode(';', $accept_language)[0])[0];

        preg_match('/([a-z]+)/', $language, $match);

        return end($match);
    }
public function lang ( ) { $ accept_language = $ this -> getHeader ( 'accept_language' ) ; $ language = explode ( ',' , explode ( ';' , $ accept_language ) [ 0 ] ) [ 0 ] ; preg_match ( '/([a-z]+)/' , $ language , $ match ) ; return end ( $ match ) ; }
Get request lang.

@return string
Get request lang .