cvs: phpdoc /en/functions misc.xml

From: Date: Thu, 20 Dec 2001 20:06:06 +0000
Subject: cvs: phpdoc /en/functions misc.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340168@lists.php.net to get a copy of this message
jimw Thu Dec 20 15:06:06 2001 EDT Modified files: /phpdoc/en/functions misc.xml Log: uniqid: fix return type, use lcg parameter in example Index: phpdoc/en/functions/misc.xml diff -u phpdoc/en/functions/misc.xml:1.63 phpdoc/en/functions/misc.xml:1.64 --- phpdoc/en/functions/misc.xml:1.63 Wed Dec 19 10:46:53 2001 +++ phpdoc/en/functions/misc.xml Thu Dec 20 15:06:06 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.63 $ --> +<!-- $Revision: 1.64 $ --> <reference id="ref.misc"> <title>Miscellaneous functions</title> <titleabbrev>Misc.</titleabbrev> @@ -941,7 +941,7 @@ <title>Description</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>uniqid</function></funcdef> + <funcdef>string <function>uniqid</function></funcdef> <paramdef>string <parameter>prefix</parameter></paramdef> <paramdef>bool <parameter><optional>lcg</optional></parameter> @@ -953,7 +953,7 @@ based on the current time in microseconds. The prefix can be useful for instance if you generate identifiers simultaneously on several hosts that might happen to generate the identifier at the - same microsecond. <parameter>Prefix</parameter> can be up to 114 + same microsecond. <parameter>Prefix</parameter> can be up to 114 characters long. </simpara> <simpara> @@ -980,8 +980,8 @@ <informalexample> <programlisting role="php"> <![CDATA[ -$token = md5 (uniqid ("")); // no random portion -$better_token = md5 (uniqid (rand())); // better, difficult to guess +$token = md5(uniqid("")); // no prefix +$better_token = md5(uniqid(rand(),1)); // better, difficult to guess ]]> </programlisting> </informalexample>

« previous php.doc (#969340168) next »