svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml
| From: | Karoly Negyesi | Date: | Tue, 05 Feb 2013 09:43:01 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ strtr.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10991@lists.php.net to get a copy of this message | ||
chx Tue, 05 Feb 2013 09:43:01 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=329430
Log:
document passing non-scalars to 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 2013-02-05 01:15:21 UTC (rev 329429)
+++ phpdoc/en/trunk/reference/strings/functions/strtr.xml 2013-02-05 09:43:01 UTC (rev 329430)
@@ -101,7 +101,9 @@
<para>
If <parameter>replace_pairs</parameter> contains a key which
is an empty <type>string</type> (<literal>""</literal>),
- &false; will be returned.
+ &false; will be returned. If the <parameter>str</parameter> is not a scalar
+ then it is not typecasted into a string, instead a warning is raised and
+ &null; is returned.
</para>
</refsect1>