XMLWriter XMLWriter::writeDtdEntity

xmlwriter_write_dtd_entity


(PHP 5 >= 5.2.1, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

XMLWriter::writeDtdEntity -- xmlwriter_write_dtd_entity — Write full DTD Entity tag


설명

객체 지향 스타일

public XMLWriter::writeDtdEntity(
    string $name,
    string $content,
    bool $isParam = false,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $notationData = null
): bool
                

절차적 스타일

xmlwriter_write_dtd_entity(
    XMLWriter $writer,
    string $name,
    string $content,
    bool $isParam = false,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $notationData = null
): bool
                

전체 DTD 엔터티를 씁니다.


매개변수

writer
절차 호출에만 해당됩니다. 수정 중인 XMLWriter 인스턴스입니다. 이 객체는 xmlwriter_open_uri() 또는 xmlwriter_open_memory()에 대한 호출에서 반환됩니다.
name
엔터티의 이름입니다.
content
엔터티의 내용입니다.

반환 값

성공하면 true를, 실패하면 false를 반환합니다.


변경 로그

버전 설명
8.0.0 writer는 이제 XMLWriter 인스턴스를 기대합니다. 이전에는 리소스가 필요했습니다.
8.0.0 publicId, systemIdnotationData는 이제 nullable입니다.

기타