betz Sun Jan 4 21:09:55 2004 EDT
Modified files: /phpdoc/en/language variables.xml Log: use of echo in examples Index: phpdoc/en/language/variables.xml diff -u phpdoc/en/language/variables.xml:1.72 phpdoc/en/language/variables.xml:1.73 --- phpdoc/en/language/variables.xml:1.72 Sun Jan 4 20:57:24 2004 +++ phpdoc/en/language/variables.xml Sun Jan 4 21:09:54 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.72 $ --> +<!-- $Revision: 1.73 $ --> <chapter id="language.variables"> <title>Variables</title> @@ -450,12 +450,12 @@ // 'global' to be available to the functions local scope. global $HTTP_POST_VARS; - print $HTTP_POST_VARS['name']; + echo $HTTP_POST_VARS['name']; // Superglobals are available in any scope and do // not require 'global'. Superglobals are available // as of PHP 4.1.0 - print $_POST['name']; + echo $_POST['name']; } ?> ]]> @@ -830,22 +830,22 @@ <?php // Available since PHP 4.1.0 - print $_POST['username']; - print $_REQUEST['username']; + echo $_POST['username']; + echo $_REQUEST['username']; import_request_variables('p', 'p_'); - print $p_username; + echo $p_username; // Available since PHP 3. As of PHP 5.0.0, these long predefined // variables can be disabled with the register_long_arrays directive. - print $HTTP_POST_VARS['username']; + echo $HTTP_POST_VARS['username']; // Available if the PHP directive register_globals = on. As of // PHP 4.2.0 the default value of register_globals = off. // Using/relying on this method is not preferred. - print $username; + echo $username; ?> ]]> </programlisting> @@ -905,11 +905,11 @@ <![CDATA[ <?php if (isset($_POST['action']) && $_POST['action'] == 'submitted') { - print '<pre>'; + echo '<pre>'; print_r($_POST); - print '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>'; + echo '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>'; - print '</pre>'; + echo '</pre>'; } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">