[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/pdo/pdo/_errorcode.xml?=
From:       Maciek_Sokolewicz <tularis () php ! net>
Date:       2015-03-29 20:38:05
Message-ID: svn-tularis-1427661485-336244-1842919340 () svn ! php ! net
[Download RAW message or body]

tularis                                  Sun, 29 Mar 2015 20:38:05 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=336244

Log:
make example consistent (use echo instead of both print and echo in the same example)

Changed paths:
    U   phpdoc/en/trunk/reference/pdo/pdo/errorcode.xml

Modified: phpdoc/en/trunk/reference/pdo/pdo/errorcode.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo/pdo/errorcode.xml	2015-03-29 20:12:45 UTC (rev 336243)
+++ phpdoc/en/trunk/reference/pdo/pdo/errorcode.xml	2015-03-29 20:38:05 UTC (rev 336244)
@@ -53,8 +53,7 @@
 /* Provoke an error -- the BONES table does not exist */
 $dbh->exec("INSERT INTO bones(skull) VALUES ('lucy')");

-echo "\nPDO::errorCode(): ";
-print $dbh->errorCode();
+echo "\nPDO::errorCode(): ", $dbh->errorCode();
 ?>
 ]]>
     </programlisting>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic