cvs: peardoc /en/package/php/php-compat/php-compat loadconstant.xml
| From: | Aidan Lister | Date: | Fri, 04 Jun 2004 09:37:35 +0000 |
| Subject: | cvs: peardoc /en/package/php/php-compat/php-compat loadconstant.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4208@lists.php.net to get a copy of this message | ||
aidan Fri Jun 4 05:37:35 2004 EDT
Modified files:
/peardoc/en/package/php/php-compat/php-compat loadconstant.xml
Log:
Fixed examples
http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/php-compat/loadconstant.xml?r1=1.4&r2=1.5&ty=u
Index: peardoc/en/package/php/php-compat/php-compat/loadconstant.xml
diff -u peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.4
peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.5
--- peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.4 Fri Jun 4 05:14:01 2004
+++ peardoc/en/package/php/php-compat/php-compat/loadconstant.xml Fri Jun 4 05:37:35 2004
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="package.php.php-compat.php-compat.loadconstant">
<refnamediv>
<refname>PHP_Compat::loadConstant()</refname>
- <refpurpose>Loads a constant or constants</refpurpose>
+ <refpurpose>Loads a constant, or an array of constants</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
@@ -46,11 +46,14 @@
<?php
require_once 'PHP/Compat.php';
-// load file_put_contents
+// load E_STRICT
PHP_Compat::loadConstant('E_STRICT');
-// load str_split, array_chunk and file_get_contents
+// load E_STRICT, and PATH_SEPATATOR
PHP_Compat::loadConstant(array('E_STRICT', 'PATH_SEPARATOR'));
+
+// load the STD group of constants (STDIN, STDOUT, STDERR)
+PHP_Compat::loadConstant('STD');
?>
]]>
</programlisting>