Pop\Dom\Dom::setCharset PHP 메소드

setCharset() 공개 메소드

Method to set the document charset.
public setCharset ( string $chr ) : Dom
$chr string
리턴 Dom
    public function setCharset($chr)
    {
        $this->charset = $chr;
        return $this;
    }

Usage Example

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