mirror of
https://github.com/php/doc-it.git
synced 2026-03-24 23:52:12 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@351144 c90b9560-bf6c-de11-be94-00142212c4b1
88 lines
2.7 KiB
XML
88 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: pastore Status: ready -->
|
|
<!-- CREDITS: darvina -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.xml-parser-create">
|
|
<refnamediv>
|
|
<refname>xml_parser_create</refname>
|
|
<refpurpose>Crea un parser XML</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>xml_parser_create</methodname>
|
|
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>xml_parser_create</function> crea un nuovo parser XML
|
|
e restituisce un handle che si riferisce ad esso da utilizzarsi con le
|
|
altre funzioni XML.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>encoding</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Il parametro opzionale <parameter>encoding</parameter> indica la
|
|
codifica dei caratteri in input ed output per il PHP 4. A partire dal PHP 5, la codifica
|
|
dell'input è determinata automaticamente, pertanto il parametro
|
|
<parameter>encoding</parameter> indica solo dal codifica dell'output.
|
|
In PHP 4, la codifica di default dell'output è la medesima utilizzata
|
|
dall'input. Se si indica una stringa vuota, il parser tenta di inviduare
|
|
la codifica utilizzata per il documento guardando l'intestazione dello stesso per
|
|
3 o 4 byte. In PHP 5.0.0 a 5.0.1, il set di caratteri di default è
|
|
l' ISO-8859-1, mentre in PHP 5.0.2 e successivi è UTF-8. Le codifiche
|
|
supportate sono <literal>ISO-8859-1</literal>, <literal>UTF-8</literal> e
|
|
<literal>US-ASCII</literal>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Restituisce un handle della risorsa per il nuovo parser XML.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>xml_parser_create_ns</function></member>
|
|
<member><function>xml_parser_free</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|