Bug #77130 [Com]: Documentation error

From: Date: Fri, 09 Nov 2018 10:39:40 +0000
Subject: Bug #77130 [Com]: Documentation error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16128@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77130&edit=1 ID: 77130 Comment by: sjon at Hortensius dot net Reported by: clement dot barbaza at gmail dot com Summary: Documentation error Status: Not a bug Type: Bug Package: Documentation problem Operating System: Mac OS 10.14.1 PHP Version: 7.2.12 Block user comment: N Private report: N New Comment: actually both are correct, so why do you think it has to be one, not the other? Previous Comments: ------------------------------------------------------------------------ [2018-11-09 10:39:11] bwoebi@php.net This is valid syntax. Though you usually see the latter variant, it's just two syntaxes to express the same thing. ------------------------------------------------------------------------ [2018-11-09 10:32:41] clement dot barbaza at gmail dot com Description: ------------ Hello, I found an error in the documentation Strings : http://php.net/manual/en/language.types.string.php There is a problem on the documentation : echo "He drank some juice made of ${juice}s."; Instead, it has to be : echo "He drank some juice made of {$juice}s."; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77130&edit=1

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