php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80631 Show each OPERATOR after category-name.
Submitted: 2021-01-15 18:55 UTC Modified: 2021-01-16 19:37 UTC
From: hen20-xmp at yahoo dot co dot jp Assigned:
Status: Closed Package: Documentation 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: hen20-xmp at yahoo dot co dot jp
New email:
PHP Version: OS:

 

 [2021-01-15 18:55 UTC] hen20-xmp at yahoo dot co dot jp
Description:
------------
Please show each OPERATOR after respective category-name on Operators Table in PHP Manual page (https://www.php.net/manual/en/language.operators.php) and also perhaps (https://www.php.net/manual/en/langref.php).

(eg.)
Arithmetic Operators     +  -  *  /  %  **  ...
Assignment Operators     =  +=  -=  *=  /=  ...
Bitwise Operators        &  ...
...

So, beginners can see where to go.


Expected result:
----------------
Operators ¶
Table of Contents ¶

    Operator Precedence
    Arithmetic Operators     +  -  *  /  %  **
    Assignment Operators     =  +=  -=  *=  /=  %=  &=  |=  ^=  <<=  >>=  .=  ??=
    Bitwise Operators        &  |  ^  ~  <<  >>
    Comparison Operators     ==  ===  !=  <>  !==  <  >  <=  >=  <=>  ?:  ??
    Error Control Operators  @
    Execution Operators      ``
    Incrementing/Decrementing Operators     ++  --
    Logical Operators        and  or  xor  !  &&  ||
    String Operators         .  .=
    Array Operators          +  ==  ===  !=  <>  !==
    Type Operators           instanceof

Actual result:
--------------
Operators ¶
Table of Contents ¶

    Operator Precedence
    Arithmetic Operators
    Assignment Operators
    Bitwise Operators
    Comparison Operators
    Error Control Operators
    Execution Operators
    Incrementing/Decrementing Operators
    Logical Operators
    String Operators
    Array Operators
    Type Operators

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-01-15 19:00 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2021-01-15 19:00 UTC] requinix@php.net
Did you see the part of the operators page that says

> A full list of PHP operators follows in the section Operator Precedence. The
> section also explains operator precedence and associativity, which govern
> exactly how expressions containing several different operators are evaluated.
https://www.php.net/manual/en/language.operators.precedence.php
 [2021-01-15 20:55 UTC] hen20-xmp at yahoo dot co dot jp
-Status: Feedback +Status: Open
 [2021-01-15 20:55 UTC] hen20-xmp at yahoo dot co dot jp
The purpose of this is not showing all operators, 
but lead users to find where to go to get each operator's explanation.

Now we must click many times to do so, 
some of these cannot be found with search 
and cannot help but follow links. 

We need a shortcut.
 [2021-01-16 19:37 UTC] hen20-xmp at yahoo dot co dot jp
-Status: Open +Status: Closed
 [2021-01-16 19:37 UTC] hen20-xmp at yahoo dot co dot jp
I realized this bug report lacks words.
So I would like to report another and close this.
Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC