Doc #72022 [Nab->Csd]: Typo in Ternary Operator documentation

From: Date: Thu, 14 Apr 2016 02:52:18 +0000
Subject: Doc #72022 [Nab->Csd]: Typo in Ternary Operator documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13411@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 User updated by: t dot sasaki at ebisol dot co dot jp Reported by: t dot sasaki at ebisol dot co dot jp Summary: Typo in Ternary Operator documentation -Status: Not a bug +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Sorry, this is my misunderstading. Previous Comments: ------------------------------------------------------------------------ [2016-04-14 02:50:52] requinix@php.net There is no expr2 in "expr1 ?: expr3". What it says now is correct. ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#13411) next »