php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73365 Replace commas with dots in example snippet
Submitted: 2016-10-21 13:41 UTC Modified: 2016-10-21 13:46 UTC
From: mail at michaelwesthof dot nl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-10-21 13:41 UTC] mail at michaelwesthof dot nl
Description:
------------
---
From manual page: http://www.php.net/internals2.opcodes.catch
---

echo 'Caught exception: ',  $e->getMessage(), "\n";

Should read for it to work:

echo 'Caught exception: ' .  $e->getMessage() . "\n";


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-21 13:43 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2016-10-21 13:43 UTC] requinix@php.net
Commas are allowed. http://php.net/echo
 [2016-10-21 13:46 UTC] mail at michaelwesthof dot nl
This is no bug in the docs.
This works with echo, but not with print!
This bug report may be closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 05:01:29 2024 UTC