Doc #72097 [Fbk->Csd]: Documentation example is incorrect

From: Date: Sun, 24 Apr 2016 20:20:42 +0000
Subject: Doc #72097 [Fbk->Csd]: Documentation example is incorrect
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13429@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72097&edit=1 ID: 72097 User updated by: toni dot pejic98 at gmail dot com Reported by: toni dot pejic98 at gmail dot com Summary: Documentation example is incorrect -Status: Feedback +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Nvm , I made a mistake. Previous Comments: ------------------------------------------------------------------------ [2016-04-24 20:14:37] requinix@php.net Single quotes for strings are fine. http://php.net/manual/en/language.types.string.php Are you looking at the English version of the page? Which language? ------------------------------------------------------------------------ [2016-04-24 19:45:48] toni dot pejic98 at gmail dot com Description: ------------ --- From manual page: http://si1.php.net/manual/en/tutorial.firstpage.php --- You used ' instead of " for echo command. Test script: --------------- <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> Expected result: ---------------- <br /> <b>Parse error</b>: syntax error, unexpected 'm' (T_STRING), expecting ',' or ';' in <b>/home/u114930943/public_html/index.php</b> on line <b>9</b><br /> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72097&edit=1

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