svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml
| From: | Peter Cowburn | Date: | Fri, 28 May 2010 15:50:00 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6756@lists.php.net to get a copy of this message | ||
salathe Fri, 28 May 2010 15:50:00 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299913
Log:
tidied up return values section for strtr()
- simpler normal return value description
- empty key returns false (bug #51908)
Bug: http://bugs.php.net/51908 (Open) Undocumented return
value for strtr
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/strtr.xml
Modified: phpdoc/en/trunk/reference/strings/functions/strtr.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/strtr.xml 2010-05-28 15:49:55 UTC (rev 299912)
+++ phpdoc/en/trunk/reference/strings/functions/strtr.xml 2010-05-28 15:50:00 UTC (rev 299913)
@@ -77,11 +77,13 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- This function returns a copy of <parameter>str</parameter>,
- translating all occurrences of each character in
- <parameter>from</parameter> to the corresponding character in
- <parameter>to</parameter>.
+ Returns the translated <type>string</type>.
</para>
+ <para>
+ If <parameter>replace_pairs</parameter> contains a key which
+ is an empty <type>string</type> (<literal>""</literal>),
+ &false; will be returned.
+ </para>
</refsect1>
<refsect1 role="examples">
@@ -130,6 +132,7 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>str_replace</function></member>
<member><function>preg_replace</function></member>
</simplelist>
</para>