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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 16 09:01:23 2021 UTC