php.net |  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
 [2007-07-27 10:03 UTC] fumble1 at web dot de
Description:
------------
Hello,

I caught an translation error in http://www.php.net/types.string#language.types.string.substr (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."


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

Thanks.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jul 09 09:01:25 2020 UTC