May someone with karma commit the attached xml. I will ask for karma later today.
Andrey ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 06, 2002 9:15 AM Subject: [PHP-DOC] #20850 [Csd->Opn]: str_shuffle needs documentation > ID: 20850 > Updated by: [EMAIL PROTECTED] > Reported By: [EMAIL PROTECTED] > -Status: Closed > +Status: Open > Bug Type: Documentation problem > PHP Version: 4CVS-2002-12-05 (dev) > New Comment: > > That thing @ zend.com is usually not what people use. It's a bug, and > thus it belongs in the bugsystem. > > > Previous Comments: > ------------------------------------------------------------------------ > > [2002-12-05 22:05:47] [EMAIL PROTECTED] > > Nevermind. I see that this function appears on the list at > http://www.zend.com/phpfunc/nodoku.php. There's not much point to me > doubling up the information. :) > > ------------------------------------------------------------------------ > > [2002-12-05 20:36:33] [EMAIL PROTECTED] > > Please add str_shuffle to the documentation. Here's the comment from > the source code (ext/standard/string.c): > > /* {{{ proto void str_shuffle(string str) > Shuffles string. One permutation of all possible is created */ > > > ------------------------------------------------------------------------ > > > -- > Edit this bug report at http://bugs.php.net/?id=20850&edit=1 > > > -- > PHP Documentation Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
<?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.str_shuffle"> <refnamediv> <refname>str_shuffle</refname> <refpurpose>Shuffle an string</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>str_shuffle</methodname> <methodparam><type>string</type><parameter>str</parameter></methodparam> </methodsynopsis> <para> This function shuffles (randomizes the order of the chars in) an string. You must use <function>srand</function> to seed this function. The randomization method is the same as in <function>shuffle</function>. Keep in mind that unlike <function>shuffle</function> this function does not change the parameter passed to it but instead returns the randomized string. <example> <title><function>str_shuffle</function> example</title> <programlisting role="php"> <![CDATA[ srand ((float)microtime()*1000000); $shuffled = str_shuffle ("foo bar"); echo sprintf("[%s]\n", $shuffled); ]]> </programlisting> </example> </para> <para> See also <function>shuffle</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 -->
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php