php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #6180 missing operators in docu
Submitted: 2000-08-15 14:53 UTC Modified: 2001-12-17 17:05 UTC
From: waldschrott@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0 Latest CVS (15/08/2000) OS: *
Private report: No CVE-ID: None
 [2000-08-15 14:53 UTC] waldschrott@php.net
have a look at the manual "language.operators.precedence.html",
shouldn "(",")" and "{","}" and <<< HERE DOCS not be added
here? (perhaps !==) too?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 10:13 UTC] hholzgra@php.net
!== is in there, but how should 
"(",")" and "{","}" and <<< HERE DOCS
fit in there ?
 [2000-08-17 10:37 UTC] waldschrott@php.net
() has the highest precedence, eg.
$a = 1 && $b = 2;
($a = 1) && ($b = 3);
It was a bug report that made me thinking it should be added.

{} well, I don?t know why it works, but it works like []
echo $x{1}='test2';
var_dump($x); // results in an arry

!== you?re right, did not see

<<< well and here-docs seem to have the hightest precedence
too, similar to new

$x=1;
$a=1;
$x=!$a=<<<test
0
test;
echo $x;
echo $x;
 [2000-09-03 07:40 UTC] waldschrott@php.net
note: andi mentioned, that {} should *not* be used to access
array elements.
 [2001-12-17 17:05 UTC] eschmid@php.net
Here docs are in the manual.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 10:01:29 2025 UTC