Pop\Dom\Dom::getCharset PHP Метод

getCharset() публичный Метод

Method to return the document charset.
public getCharset ( ) : string
Результат string
    public function getCharset()
    {
        return $this->charset;
    }

Usage Example

Пример #1
0
 public function testSetAndGetCharset()
 {
     $d = new Dom(Dom::XHTML11);
     $d->setCharset('utf-8');
     $this->assertEquals('utf-8', $d->getCharset());
 }