philip          Fri May 30 12:58:05 2003 EDT

  Modified files:              
    /phpdoc/en/reference/var/functions  floatval.xml 
                                        get-defined-vars.xml 
                                        get-resource-type.xml 
                                        import-request-variables.xml 
                                        is-scalar.xml serialize.xml 
                                        settype.xml unset.xml 
  Log:
  Added php tags (<?php ?>) to examples.
  
  
Index: phpdoc/en/reference/var/functions/floatval.xml
diff -u phpdoc/en/reference/var/functions/floatval.xml:1.2 
phpdoc/en/reference/var/functions/floatval.xml:1.3
--- phpdoc/en/reference/var/functions/floatval.xml:1.2  Wed Apr 17 02:44:56 2002
+++ phpdoc/en/reference/var/functions/floatval.xml      Fri May 30 12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.66 -->
   <refentry id="function.floatval">
    <refnamediv>
@@ -21,9 +21,11 @@
     <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 $var = '122.34343The';
 $float_value_of_var = floatval ($var);
 print $float_value_of_var; // prints 122.34343
+?>
 ]]>
       </programlisting>
      </informalexample>
Index: phpdoc/en/reference/var/functions/get-defined-vars.xml
diff -u phpdoc/en/reference/var/functions/get-defined-vars.xml:1.3 
phpdoc/en/reference/var/functions/get-defined-vars.xml:1.4
--- phpdoc/en/reference/var/functions/get-defined-vars.xml:1.3  Sun Jun 16 03:11:04 
2002
+++ phpdoc/en/reference/var/functions/get-defined-vars.xml      Fri May 30 12:58:05 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 -->
   <refentry id="function.get-defined-vars">
    <refnamediv>
@@ -21,6 +21,7 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 $b = array(1,1,2,3,5,8);
 
 $arr = get_defined_vars();
@@ -40,6 +41,7 @@
 
 // print all the available keys for the arrays of variables
 print_r(array_keys(get_defined_vars()));
+?>
 ]]>
       </programlisting>
      </informalexample>
Index: phpdoc/en/reference/var/functions/get-resource-type.xml
diff -u phpdoc/en/reference/var/functions/get-resource-type.xml:1.2 
phpdoc/en/reference/var/functions/get-resource-type.xml:1.3
--- phpdoc/en/reference/var/functions/get-resource-type.xml:1.2 Wed Apr 17 02:44:56 
2002
+++ phpdoc/en/reference/var/functions/get-resource-type.xml     Fri May 30 12:58:05 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.75 -->
   <refentry id="function.get-resource-type">
    <refnamediv>
@@ -22,6 +22,7 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 $c = mysql_connect();
 echo get_resource_type($c)."\n";
 // prints: mysql link
@@ -33,6 +34,7 @@
 $doc = new_xmldoc("1.0");
 echo get_resource_type($doc->doc)."\n";
 // prints: domxml document
+?>
 ]]>
       </programlisting>
      </informalexample>
Index: phpdoc/en/reference/var/functions/import-request-variables.xml
diff -u phpdoc/en/reference/var/functions/import-request-variables.xml:1.8 
phpdoc/en/reference/var/functions/import-request-variables.xml:1.9
--- phpdoc/en/reference/var/functions/import-request-variables.xml:1.8  Mon Jul  1 
14:10:17 2002
+++ phpdoc/en/reference/var/functions/import-request-variables.xml      Fri May 30 
12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 -->
   <refentry id="function.import-request-variables">
    <refnamediv>
@@ -57,11 +57,13 @@
     <informalexample>
      <programlisting role="php">
 <![CDATA[
+<?php
 // This will import GET and POST vars
 // with an "rvar_" prefix
 import_request_variables("gP", "rvar_");
 
 print $rvar_foo;
+?>
 ]]>
      </programlisting>
     </informalexample>
Index: phpdoc/en/reference/var/functions/is-scalar.xml
diff -u phpdoc/en/reference/var/functions/is-scalar.xml:1.2 
phpdoc/en/reference/var/functions/is-scalar.xml:1.3
--- phpdoc/en/reference/var/functions/is-scalar.xml:1.2 Wed Apr 17 02:44:58 2002
+++ phpdoc/en/reference/var/functions/is-scalar.xml     Fri May 30 12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.35 -->
   <refentry id="function.is-scalar">
    <refnamediv>
@@ -29,6 +29,7 @@
 <!-- TODO: better example, this one can be quite misleading for unexperienced
            programmers.  -->
 <![CDATA[
+<?php
 function show_var($var) {
     if (is_scalar($var)) {
         echo $var;
@@ -52,6 +53,7 @@
 //   [2]=>
 //   string(10) "ferredoxin"
 // }
+?>
 ]]>
       </programlisting>
      </informalexample>
Index: phpdoc/en/reference/var/functions/serialize.xml
diff -u phpdoc/en/reference/var/functions/serialize.xml:1.5 
phpdoc/en/reference/var/functions/serialize.xml:1.6
--- phpdoc/en/reference/var/functions/serialize.xml:1.5 Sat Jan  4 06:37:01 2003
+++ phpdoc/en/reference/var/functions/serialize.xml     Fri May 30 12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.28 -->
   <refentry id="function.serialize">
    <refnamediv>
@@ -65,6 +65,7 @@
       <title><function>serialize</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 // $session_data contains a multi-dimensional array with session
 // information for the current user.  We use serialize() to store
 // it in a database at the end of the request.
@@ -80,6 +81,7 @@
     /* Something went wrong.  Bitch, whine and moan. */
     }
 }
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/var/functions/settype.xml
diff -u phpdoc/en/reference/var/functions/settype.xml:1.4 
phpdoc/en/reference/var/functions/settype.xml:1.5
--- phpdoc/en/reference/var/functions/settype.xml:1.4   Tue Jan 21 14:10:29 2003
+++ phpdoc/en/reference/var/functions/settype.xml       Fri May 30 12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
   <refentry id="function.settype">
    <refnamediv>
@@ -66,11 +66,13 @@
       <title><function>settype</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $foo = "5bar"; // string
 $bar = true;   // boolean
 
 settype($foo, "integer"); // $foo is now 5   (integer)
 settype($bar, "string");  // $bar is now "1" (string)
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/var/functions/unset.xml
diff -u phpdoc/en/reference/var/functions/unset.xml:1.4 
phpdoc/en/reference/var/functions/unset.xml:1.5
--- phpdoc/en/reference/var/functions/unset.xml:1.4     Wed May 21 18:37:51 2003
+++ phpdoc/en/reference/var/functions/unset.xml Fri May 30 12:58:05 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
   <refentry id="function.unset">
    <refnamediv>
@@ -29,6 +29,7 @@
       <title><function>unset</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 // destroy a single variable
 unset ($foo);
 
@@ -37,6 +38,7 @@
 
 // destroy more than one variable
 unset ($foo1, $foo2, $foo3);
+?>
 ]]>
       </programlisting>
      </example>
@@ -54,6 +56,7 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 function destroy_foo() {
     global $foo;
     unset($foo);
@@ -62,6 +65,7 @@
 $foo = 'bar';
 destroy_foo();
 echo $foo;
+?>
 ]]>
       </programlisting>
      </informalexample>
@@ -83,6 +87,7 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 function foo(&$bar) {
     unset($bar);
     $bar = "blah";
@@ -93,6 +98,7 @@
 
 foo($bar);
 echo "$bar\n";
+?>
 ]]>
       </programlisting>
      </informalexample>
@@ -113,6 +119,7 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 function foo() {
     static $a;
     $a++;
@@ -123,6 +130,7 @@
 foo();
 foo();
 foo();
+?>
 ]]>
       </programlisting>
      </informalexample>
@@ -144,12 +152,14 @@
      <informalexample>
       <programlisting role="php">
 <![CDATA[
+<?php
 function foo() {
     unset($GLOBALS['bar']);
 }
 
 $bar = "something";
 foo();
+?>
 ]]>
       </programlisting>
      </informalexample>

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

Reply via email to