note 109452 added to function.strtr
| From: | zapparello at gmail dot com | Date: | Wed, 18 Jul 2012 14:53:56 +0000 |
| Subject: | note 109452 added to function.strtr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-189281@lists.php.net to get a copy of this message | ||
If you use empty translation strings, e.g:
<?php
print (strtr ("hello", array('' => '')));
?>
The output will be empty! I'm not sure this is a bug (although it looks like one), but this is
very annoying, really.
----
Server IP: 69.147.83.197
Probable Submitter: 213.59.86.89
----
Manual Page -- http://www.php.net/manual/en/function.strtr.php
Edit -- https://master.php.net/note/edit/109452
Del: integrated -- https://master.php.net/note/delete/109452/integrated
Del: useless -- https://master.php.net/note/delete/109452/useless
Del: bad code -- https://master.php.net/note/delete/109452/bad+code
Del: spam -- https://master.php.net/note/delete/109452/spam
Del: non-english -- https://master.php.net/note/delete/109452/non-english
Del: in docs -- https://master.php.net/note/delete/109452/in+docs
Del: other reasons-- https://master.php.net/note/delete/109452
Reject -- https://master.php.net/note/reject/109452
Search -- https://master.php.net/manage/user-notes.php