Doc #72022 [Opn->Nab]: Typo in Ternary Operator documentation
| From: | requinix@php.net | Date: | Thu, 14 Apr 2016 02:50:53 +0000 |
| Subject: | Doc #72022 [Opn->Nab]: Typo in Ternary Operator documentation | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13410@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72022&edit=1
ID: 72022
Updated by: requinix@php.net
Reported by: t dot sasaki at ebisol dot co dot jp
Summary: Typo in Ternary Operator documentation
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
There is no expr2 in "expr1 ?: expr3". What it says now is correct.
Previous Comments:
------------------------------------------------------------------------
[2016-04-14 02:46:16] t dot sasaki at ebisol dot co dot jp
Description:
------------
---
From manual page: http://php.net/manual/en/language.operators.comparison.php
---
Ternary Operator documentation includes following sentence.
'Expression expr1 ?: expr3 returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.'
That should be like below.
'Expression expr1 ?: expr3 returns expr2 if expr1 evaluates to TRUE, and expr3 otherwise.'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72022&edit=1