cvs: phpdoc-zh /reference/math/functions mt-srand.xml

From: Date: Fri, 12 Aug 2005 04:36:16 +0000
Subject: cvs: phpdoc-zh /reference/math/functions mt-srand.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2202@lists.php.net to get a copy of this message
lm92 Fri Aug 12 00:36:16 2005 EDT Modified files: /phpdoc-zh/reference/math/functions mt-srand.xml Log: updated to en version http://cvs.php.net/diff.php/phpdoc-zh/reference/math/functions/mt-srand.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-zh/reference/math/functions/mt-srand.xml diff -u phpdoc-zh/reference/math/functions/mt-srand.xml:1.3 phpdoc-zh/reference/math/functions/mt-srand.xml:1.4 --- phpdoc-zh/reference/math/functions/mt-srand.xml:1.3 Mon Aug 18 21:55:08 2003 +++ phpdoc-zh/reference/math/functions/mt-srand.xml Fri Aug 12 00:36:12 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> <refentry id="function.mt-srand"> <refnamediv> <refname>mt_srand</refname> @@ -15,13 +15,18 @@ </methodsynopsis> <para> Óà - <parameter>seed</parameter> À´¸øËæ»úÊý·¢ÉúÆ÷²¥ÖÖ¡£ - <informalexample> + <parameter>seed</parameter> À´¸øËæ»úÊý·¢ÉúÆ÷²¥ÖÖ¡£´Ó PHP 4.2.0 + °æ¿ªÊ¼£¬<parameter>seed</parameter> ²ÎÊý±äΪ¿ÉÑ¡Ïµ±¸ÃÏîΪ¿Õʱ£¬»á±»ÉèÎªËæÊ±Êý¡£ + </para> + <para> + <example> + <title><function>mt_srand</function> ·¶Àý</title> <programlisting role="php"> <![CDATA[ <?php // seed with microseconds -function make_seed() { +function make_seed() +{ list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } @@ -30,7 +35,7 @@ ?> ]]> </programlisting> - </informalexample> + </example> </para> &note.randomseed; <simpara>

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