cvs: phpdoc-zh /reference/var/functions get-defined-vars.xml

From: Date: Fri, 25 Apr 2003 15:37:29 +0000
Subject: cvs: phpdoc-zh /reference/var/functions get-defined-vars.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1390@lists.php.net to get a copy of this message
nio Fri Apr 25 11:37:29 2003 EDT Added files: /phpdoc-zh/reference/var/functions get-defined-vars.xml Log: Add file Index: phpdoc-zh/reference/var/functions/get-defined-vars.xml +++ phpdoc-zh/reference/var/functions/get-defined-vars.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 --> <refentry id="function.get-defined-vars"> <refnamediv> <refname>get_defined_vars</refname> <refpurpose> ·µ»ØÓÉËùÓÐÒѶ¨Òå±äÁ¿Ëù×é³ÉµÄÊý×é </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>array</type><methodname>get_defined_vars</methodname> <void/> </methodsynopsis> <para> ´Ëº¯Êý·µ»ØÒ»¸ö°üº¬ËùÓÐÒѶ¨Òå±äÁ¿ÁбíµÄ¶àάÊý×飬ÕâЩ±äÁ¿°üÀ¨»·¾³±äÁ¿¡¢·þÎñÆ÷±äÁ¿ºÍÓû§¶¨ÒåµÄ±äÁ¿¡£ <informalexample> <programlisting role="php"> <![CDATA[ $b = array(1,1,2,3,5,8); $arr = get_defined_vars(); // ´òÓ¡ $b print_r($arr["b"]); // ´òÓ¡ PHP ½âÊͳÌÐòµÄ·¾¶£¨Èç¹û PHP ×÷Ϊ CGI ʹÓõϰ£© // ÀýÈ磺/usr/local/bin/php echo $arr["_"]; // ´òÓ¡ÃüÁîÐвÎÊý£¨Èç¹ûÓеϰ£© print_r($arr["argv"]); // ´òÓ¡ËùÓзþÎñÆ÷±äÁ¿ print_r($arr["_SERVER"]); // ´òÓ¡±äÁ¿Êý×éµÄËùÓпÉÓüüÖµ print_r(array_keys(get_defined_vars())); ]]> </programlisting> </informalexample> </para> <para> ²Î¼û <function>get_defined_functions</function> ºÍ <function>get_defined_constants</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 (#1390) next »