(PHP 4 >= 4.1.0)
DomDocumentType::public_id — Belge türünün genel betimleyicisini döndürür
Belge türünün genel betimleyicisini döndürür.
Belge türünün genel betimleyicisini bir dizge olarak döndürür.
Aşağıdaki örnek hiçbir şey çıktılamaz.
Örnek 1 - Genel betimleyiciyi döndürmek
<?php
include("example.inc");
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Belge çözümlenirken hata oluştu\n";
exit;
}
$doctype = $dom->doctype();
echo $doctype->public_id();
?>
DOMDocumentType nesnesinin publicId özelliğini kullanın.