downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomDocumentType->system_id> <DomDocumentType->notations
Last updated: Fri, 14 Aug 2009

view this page in

DomDocumentType->public_id

(PHP 4 >= 4.1.0)

DomDocumentType->public_id Retourne l'identifiant public du type de document

Description

string public_id ( void )

Cette fonction retourne l'identifiant public du type de document.

Valeurs de retour

Retourne l'identifiant public de DomDocumentType, comme une chaîne de caractères.

Exemples

L'exemple ci-dessous n'affichera rien.

Exemple #1 Lire l'identifiant public avec DOM XML

<?php
include("exemple.inc");

if(!
$dom domxml_open_mem($xmlstr)) {
  echo 
"Erreur lors de l'analyse du document\n";
  exit;
}

$doctype $dom->doctype();
echo 
$doctype->public_id();
?>

Migration vers PHP 5

Utilisez la propriété publicId de l'objet DOMDocumentType.



add a note add a note User Contributed Notes
DomDocumentType->public_id
There are no user contributed notes for this page.

DomDocumentType->system_id> <DomDocumentType->notations
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites