cvs: phpdoc-zh /reference/array/functions array-combine.xml

From: Date: Sun, 17 Aug 2003 05:58:07 +0000
Subject: cvs: phpdoc-zh /reference/array/functions array-combine.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1627@lists.php.net to get a copy of this message
dallas Sun Aug 17 01:58:07 2003 EDT Added files: /phpdoc-zh/reference/array/functions array-combine.xml Log: Add a new function. Index: phpdoc-zh/reference/array/functions/array-combine.xml +++ phpdoc-zh/reference/array/functions/array-combine.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.array-combine"> <refnamediv> <refname>array_combine</refname> <refpurpose> ´´½¨Ò»¸öÊý×飬ÓÃÒ»¸öÊý×éµÄÖµ×÷ΪÆä¼üÃû£¬ÁíÒ»¸öÊý×éµÄÖµ×÷ΪÆäÖµ </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>array</type><methodname>array_combine</methodname> <methodparam><type>array</type><parameter>keys</parameter></methodparam> <methodparam><type>array</type><parameter>values</parameter></methodparam> </methodsynopsis> <para> ·µ»ØÒ»¸ö <type>array</type>£¬ÓÃÀ´×Ô <parameter>keys</parameter> Êý×éµÄÖµ×÷Ϊ¼üÃû£¬À´×Ô <parameter>values</parameter> Êý×éµÄÖµ×÷ΪÏàÓ¦µÄÖµ¡£ </para> <para> Èç¹ûÁ½¸öÊý×éµÄµ¥ÔªÊý²»Í¬»òÕßÊý×éΪ¿Õʱ·µ»Ø &false;¡£ </para> <para> <example> <title>¼òµ¥µÄ <function>array_combine</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php $a = array('green','red','yellow'); $b = array('avocado','apple','banana'); $c = array_combine($a, $b); print_r($c); /* Outputs: Array ( [green] => avocado [red] => apple [yellow] => banana ) */ ?> ]]> </programlisting> </example> </para> <para> ²Î¼û <function>array_merge</function>£¬<function>array_walk</function> ºÍ <function>array_values</function>¡£ </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:"../../../../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 -->

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