xmlwriter_write_dtd_entity()
function xmlwriter_write_dtd_entity(mixed $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool
Writes a complete DTD entity declaration.
Parameters:
$writer(mixed)$name(string)$content(string)$isParam(bool), defaultfalse, optional$publicId(?string), defaultnull, optional$systemId(?string), defaultnull, optional$notationData(?string), defaultnull, optional
Returns: bool
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xmlwriter_write_dtd_entity.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_write_dtd_entity is implemented in the compiler, see the internals page.