didou           Wed Jul 16 13:18:09 2003 EDT

  Modified files:              
    /phpdoc/en/reference/pcre/functions preg-grep.xml preg-quote.xml 
  Log:
  adding PHP tags in the examples
  
Index: phpdoc/en/reference/pcre/functions/preg-grep.xml
diff -u phpdoc/en/reference/pcre/functions/preg-grep.xml:1.2 
phpdoc/en/reference/pcre/functions/preg-grep.xml:1.3
--- phpdoc/en/reference/pcre/functions/preg-grep.xml:1.2        Wed Apr 17 02:42:48 
2002
+++ phpdoc/en/reference/pcre/functions/preg-grep.xml    Wed Jul 16 13:18:08 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
   <refentry id="function.preg-grep">
    <refnamediv>
@@ -34,9 +34,11 @@
       <title><function>preg_grep</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 // return all array elements
 // containing floating point numbers
 $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array);
+?>
 ]]>
       </programlisting>
      </example>
Index: phpdoc/en/reference/pcre/functions/preg-quote.xml
diff -u phpdoc/en/reference/pcre/functions/preg-quote.xml:1.3 
phpdoc/en/reference/pcre/functions/preg-quote.xml:1.4
--- phpdoc/en/reference/pcre/functions/preg-quote.xml:1.3       Mon Jun 16 16:03:02 
2003
+++ phpdoc/en/reference/pcre/functions/preg-quote.xml   Wed Jul 16 13:18:08 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/pcre.xml, last change in rev 1.2 -->
   <refentry id="function.preg-quote">
    <refnamediv>
@@ -34,9 +34,11 @@
       <title><function>preg_quote</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 $keywords = "$40 for a g3/400";
 $keywords = preg_quote ($keywords, "/");
 echo $keywords; // returns \$40 for a g3\/400
+?>
 ]]>
       </programlisting>
      </example>
@@ -46,6 +48,7 @@
       <title>Italicizing a word within some text</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 // In this example, preg_quote($word) is used to keep the
 // asterisks from having special meaning to the regular
 // expression.
@@ -55,6 +58,7 @@
 $textbody = preg_replace ("/".preg_quote($word)."/",
                           "<i>".$word."</i>",
                           $textbody);
+?>
 ]]>
       </programlisting>
      </example>



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

Reply via email to