php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #15368 Should document {}, [], ->, and & in Operators section of the manual
Submitted: 2002-02-04 11:14 UTC Modified: 2002-02-27 09:33 UTC
From: hek at loudoun-net dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.1 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hek at loudoun-net dot com
New email:
PHP Version: OS:

 

 [2002-02-04 11:14 UTC] hek at loudoun-net dot com
The operators seciot of the online PHP Manual omits mention of:

  {} -- used to extarct a particular character from a string (with an aside about using {} to embed variable values in strings);

  [] -- the array subscriptor (which is actually listed inthe operator precedence table, though mentioned nowhere else);

  -> -- the object property/method accessor;

  & -- the reference operator (also listed in the precendence table, though never explained elsewhere);

  => -- the array key-to-value keyword (not techniclly an operator, I know, but because it's so "punctuation-y", probably a good thing to comment on in this section).

Also, the operators precendence table at http://www.php.net/manual/en/language.operators.precedence.php should probably hyperlink each operator to the appropriate page describing it.

And finally, it might make more sense to put the operator precendence information (including the new and improved table with hyperlinks) right on the first page of the operators section (rather than the arithmentic operators information).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-07 09:37 UTC] hek at loudoun dot net
This is substantially the same as Bug#9983.
 [2002-02-27 09:33 UTC] sander@php.net
I moved the stuff to 9983.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 21:01:26 2024 UTC