php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81121 Missing documentation for the -> symbol
Submitted: 2021-06-09 20:02 UTC Modified: 2021-06-10 10:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dsilvadarius at yahoo dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: Irrelevant OS: Windows 10
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 2 = ?
Subscribe to this entry?

 
 [2021-06-09 20:02 UTC] dsilvadarius at yahoo dot com
Description:
------------
The PHP manual does not document the -> symbol. The "List of Parser Tokens" page lists it as T_OBJECT_OPERATOR, but that's not friendly enough for a beginner. Could we have a section in the documentation explaining what it is and its purpose?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-10 10:07 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2021-06-10 10:07 UTC] cmb@php.net
The -> operator is informally introduced in the section about
properties[1], but is already used in the previous section.  There
is certainly room for improvement.

[1] <https://www.php.net/manual/en/language.oop5.properties.php>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 01:03:34 2021 UTC