cvs: phpdoc-zh /appendices about.xml

From: Date: Tue, 08 Oct 2002 07:47:48 +0000
Subject: cvs: phpdoc-zh /appendices about.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-709@lists.php.net to get a copy of this message
gregory Tue Oct 8 03:47:48 2002 EDT Modified files: /phpdoc-zh/appendices about.xml Log: Co-revision with the EN Version... Index: phpdoc-zh/appendices/about.xml diff -u phpdoc-zh/appendices/about.xml:1.18 phpdoc-zh/appendices/about.xml:1.19 --- phpdoc-zh/appendices/about.xml:1.18 Mon Aug 19 23:42:17 2002 +++ phpdoc-zh/appendices/about.xml Tue Oct 8 03:47:47 2002 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.17 $ --> <!-- $Author: gregory $ --> -<!-- EN-Revision: 1.16 Maintainer: Gregory Status: ready --> +<!-- EN-Revision: 1.17 Maintainer: Gregory Status: ready --> <!-- TODO: add manual conventions section (eg. how to read function usage parts, what is fixed width, what is @@ -70,7 +70,104 @@ </para> </note> </sect1> - + + <sect1 id="tutorial.prototypes"> + <title>ÈçºÎÔĶÁº¯ÊýµÄ¶¨Ò壨º¯ÊýÔ­ÐÍ£©</title> + <para> + ÎĵµÖеÄÿ¸öº¯Êý¶¼ÓпìËٲο¼£¬Ñ§»áÈçºÎÔĶÁºÍÀí½âÎĵµ½«Ê¹µÃ PHP µÄʹÓøü¼Ó¼òµ¥¡£ºÍÒÀÀµÀµÓÚ¸´ÖÆ/Õ³Ìù·¶Àý±ÈÆðÀ´£¬ÄúÒ»¶¨¸üÏ£ÍûÖªµÀÈçºÎÔĶÁº¯ÊýµÄ¶¨Ò壨º¯ÊýÔ­ÐÍ£©£º + </para> + <note> + <title> + ÏȾöÌõ¼þ£º¶Ô¡°<link linkend="language.types">±äÁ¿ÀàÐÍ</link>¡±µÄ»ù±¾Àí½â + </title> + <para> + ¾¡¹Ü PHP ÊÇÑÇÀàÐÍÓïÑÔ£¬µ«¶Ô¡°<link linkend="language.types">±äÁ¿ÀàÐÍ</link>¡±ÓÐÒ»¸ö»ù±¾µÄÀí½âÒ²ÊǷdz£ÖØÒªµÄ£¬ÒòΪËüÃÇÓÐÖØÒªµÄÒâÒå¡£ + </para> + </note> + <para> + º¯Êý¶¨Ò叿ËßÎÒÃǺ¯Êý<link linkend="functions.returning-values">·µ»Ø</link>ʲôÀàÐ͵ÄÖµ£¬ÈÃÎÒÃÇÓú¯Êý <function>strlen</function> µÄ¶¨Òå×÷ΪÎÒÃǵĵÚÒ»¸ö·¶Àý£º + </para> + <para> + <screen role="html"> + strlen + + (PHP 3, PHP 4 >= 4.0.0) + strlen -- Get string length + + Description + int strlen ( string str ) + + Returns the length of string. + </screen> + </para> + <para> + <table> + <title>º¯Êý¶¨Òå</title> + <tgroup cols="2"> + <thead> + <row> + <entry>×é³É²¿·Ö</entry> + <entry>˵Ã÷</entry> + </row> + </thead> + <tbody> + <row> + <entry> + strlen + </entry> + <entry> + º¯ÊýÃû³Æ + </entry> + </row> + <row> + <entry> + (PHP 3, PHP 4 >= 4.0.0) + </entry> + <entry> + strlen() ÔÚ PHP 3 ºÍ PHP 4 Öж¼´æÔÚ + </entry> + </row> + <row> + <entry> + int + </entry> + <entry> + ¸Ãº¯Êý·µ»ØµÄÖµµÄÀàÐÍ£¬ÕâÀïΪ<link linkend="language.types.integer">ÕûÐÍ</link>¡££¨ÀýÈ磬×Ö·û´®µÄ³¤¶ÈÊÇÒÔÊý×ÖÀ´ºâÁ¿µÄ£© + </entry> + </row> + <row> + <entry> + ( string str ) + </entry> + <entry> + µÚÒ»¸ö£¨±¾ÀýÖÐÊÇΨһµÄ£©²ÎÊý£¬Ôڸú¯ÊýÖÐÃûΪ <parameter>str</parameter>£¬ÇÒÀàÐÍΪ <link linkend="language.types.string">string</link>¡£ + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + ÎÒÃÇ¿ÉÒÔ½«ÒÔÉϺ¯ÊýµÄ¶¨Òåд³ÉÒ»°ãÐÎʽ£º + </para> + <para> + <screen role="html"> + ·µ»ØÀàÐÍ º¯ÊýÃû ( ²ÎÊýÀàÐÍ ²ÎÊýÃû ) + </screen> + </para> + <para> + ºÜ¶àº¯Êý¶¼Óжà¸ö±äÁ¿£¬ÀýÈç <function>in_array</function>¡£Æäº¯ÊýÔ­ÐÍÈçÏ£º + </para> + <para> + <screen role="html"> + bool in_array ( mixed needle, array haystack [, bool strict]) + </screen> + </para> + <para> + ÕâÊÇʲôÒâ˼£¿<function>in_array</function> ·µ»ØÒ»¸ö¡°<link linkend="language.types.boolean">²¼¶û</link>¡±Öµ£¬³É¹¦£¨¼´ÔÚ²ÎÊý <parameter>haystack</parameter> ÖÐÄÜÕÒµ½²ÎÊý <parameter>needle</parameter>£©Ôò·µ»Ø &true; »òÕßʧ°Ü£¨¼´ÔÚ²ÎÊý <parameter>haystack</parameter> ÖÐÕÒ²»µ½²ÎÊý <parameter>needle</parameter>£©Ôò·µ»Ø &false;¡£µÚÒ»¸ö²ÎÊý±»ÃüÃûΪ <parameter>needle</parameter> ÇÒÆä<link linkend="language.types">ÀàÐÍ</link>²»¶¨£¬Òò´ËÎÒÃǽ«Æä³ÆÎª¡°<emphasis>»ìºÍ</emphasis>¡±ÀàÐÍ¡£¸Ã»ìºÍÀàÐ굀 <parameter>needle</parameter> ²ÎÊý£¨ÎÒÃÇÒªÕҵĶÔÏ󣩿ÉÒÔÊÊÒ»¸ö´¿Á¿µÄÖµ£¨×Ö·û´®¡¢ÕûÊý¡¢»òÕß<link linkend="language.types.float">¸¡µã</link>£©£¬»òÕßÒ»¸ö<link linkend="language.types.array">Êý×é</link>¡£<parameter>haystack</parameter> £¨ÎÒÃÇѰÕҵķ¶Î§£©Êǵڶþ¸ö²ÎÊý¡£µÚÈý¸ö<emphasis>¿ÉÑ¡</emphasis>²ÎÊý±»ÃüÃûΪ <parameter>strict</parameter>¡£ËùÓеĿÉÑ¡²ÎÊý¶¼Óà <emphasis>[</emphasis> ·½À¨ºÅ <emphasis>]</emphasis> ÒýÓá£ÊÖ²á±íÃ÷ <parameter>strict</parameter> ²ÎÊýĬÈÏֵΪ²¼¶ûÖµ &false;¡£ÐèÒªÁ˽⺯Êý¹¤×÷µÄϸ½Ú£¬Çë²ÎÔÄÊÖ²áÖк͸ú¯ÊýÏà¹ØµÄÒ³Ãæ¡£ + </para> + </sect1> + <sect1 id="about.more"> <title>ÈçºÎµÃµ½¹ØÓÚ PHP ¸ü¶àµÄÐÅÏ¢</title> <para>

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