svn: /phpdoc/zh/trunk/reference/filesystem/functions/ parse-ini-string.xml

From: Date: Fri, 07 Oct 2016 13:51:00 +0000
Subject: svn: /phpdoc/zh/trunk/reference/filesystem/functions/ parse-ini-string.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-4704@lists.php.net to get a copy of this message
daijie Fri, 07 Oct 2016 13:51:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=340368 Log: Translation into Chinese -- Provided by anonymous 52525 (phperweb@gmail.com) Changed paths: A phpdoc/zh/trunk/reference/filesystem/functions/parse-ini-string.xml Added: phpdoc/zh/trunk/reference/filesystem/functions/parse-ini-string.xml =================================================================== --- phpdoc/zh/trunk/reference/filesystem/functions/parse-ini-string.xml (rev 0) +++ phpdoc/zh/trunk/reference/filesystem/functions/parse-ini-string.xml 2016-10-07 13:51:00 UTC (rev 340368) @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 336975 Maintainer: WeijianZhang Status: ready --> +<!-- Reviewed: no --> + +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.parse-ini-string"> + <refnamediv> + <refname>parse_ini_string</refname> + <refpurpose>解析配置字符串</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>parse_ini_string</methodname> + <methodparam><type>string</type><parameter>ini</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>process_sections</parameter><initializer>false</initializer></methodparam> + <methodparam choice="opt"><type>int</type><parameter>scanner_mode</parameter><initializer>INI_SCANNER_NORMAL</initializer></methodparam> + </methodsynopsis> + <para> + <function>parse_ini_string</function> 返回 <parameter>ini</parameter> 字符串解析后的关联数组 + </para> + <para> + ini 字符串的格式参考 &php.ini; + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>ini</parameter></term> + <listitem> + <para> + ini 字符串内容 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>process_sections</parameter></term> + <listitem> + <para> + 设置 <parameter>process_sections</parameter> 参数为 &true;,得到一个多维数组,包含名称和设置。<parameter>process_sections</parameter> 默认为 &false; + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>scanner_mode</parameter></term> + <listitem> + <para> + 可以是 <constant>INI_SCANNER_NORMAL</constant> (默认)或 <constant>INI_SCANNER_RAW</constant> 。如果是 <constant>INI_SCANNER_RAW</constant>,那么选项值不会被解析。 + </para> + &ini.scanner.typed; + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 执行成功返回一个关联数组,返回 &false; 为失败 + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <note> + <simpara> + 保留关键字不能作为 ini 的键,包括 null, yes, no, true, false, on, off, none以及空值,off,no 和错误的结果集,值为 yes 和 正确的结果集。除非使用 <constant>INI_SCANNER_TYPED</constant> 模式。 字符 <literal>?{}|&amp;~![()^"</literal> 不能在任何地方使用作为键和有特殊意义的值。 + </simpara> + </note> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>parse_ini_file</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 +--> Property changes on: phpdoc/zh/trunk/reference/filesystem/functions/parse-ini-string.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.zh (#4704) next »