svn: /phpdoc/en/trunk/faq/ using.xml

From: Date: Sat, 03 Oct 2009 20:11:57 +0000
Subject: svn: /phpdoc/en/trunk/faq/ using.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5057@lists.php.net to get a copy of this message
philip Sat, 03 Oct 2009 20:11:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289138 Log: Added FAQ about parameter order (ex. string and array functions) Changed paths: U phpdoc/en/trunk/faq/using.xml Modified: phpdoc/en/trunk/faq/using.xml =================================================================== --- phpdoc/en/trunk/faq/using.xml 2009-10-03 19:06:31 UTC (rev 289137) +++ phpdoc/en/trunk/faq/using.xml 2009-10-03 20:11:57 UTC (rev 289138) @@ -10,6 +10,26 @@ </para> <qandaset> + + <qandaentry xml:id="faq.using.parameterorder"> + <question> + <para> + </para> + </question> + <answer> + <para> + PHP is a glue that brings together hundreds of external libraries, so sometimes + this gets messy. However, a simple rule of thumb is as follows: + </para> + <para> + <link linkend="book.array">Array function</link> parameters are ordered + as "<emphasis>needle, haystack</emphasis>" whereas + <link linkend="book.strings">String functions</link> are the opposite, + so "<emphasis>haystack, needle</emphasis>". + </para> + </answer> + </qandaentry> + <qandaentry xml:id="faq.using.anyform"> <question> <para>

« previous php.doc.cvs (#5057) next »