|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42121 German documentation on strings is wrong
Submitted: 2007-07-27 10:03 UTC Modified: 2007-12-09 00:40 UTC
From: fumble1 at web dot de Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 19 = ?
Subscribe to this entry?

 [2007-07-27 10:03 UTC] fumble1 at web dot de

I caught an translation error in (German) - maybe it has just not been updated; however, I got pretty confused.
As the documentation says:

"Characters within strings may be accessed and modified by [...] using square array-brackets like $str[42] [...].
They may also be accessed using braces like $str{42} for the same purpose. However, using square array-brackets is preferred because the {braces} style is deprecated as of PHP 6."

German documentation re-translated:

"Characters within strings may be accessed and modified by [...] using braces [...].
For downwards compatibility you may use the array-brackets. However, this syntax is depracated as of PHP 4."


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-09 00:40 UTC]
It's just outdated.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 22:03:37 2021 UTC