setContentType() public method

Method to set the document charset.
public setContentType ( string $content ) : Dom
$content string
return Dom
示例#1
0
 public function testSetAndGetContentType()
 {
     $d = new Dom(Dom::XHTML11);
     $d->setContentType('text/html');
     $this->assertEquals('text/html', $d->getContentType());
 }