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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fumble1 at web dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

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

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 11 21:01:30 2024 UTC