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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC