cvs: phpdoc /en/reference/regex reference.xml
| From: | Hannes Magnusson | Date: | Sat, 27 Oct 2007 14:47:36 +0000 |
| Subject: | cvs: phpdoc /en/reference/regex reference.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-287@lists.php.net to get a copy of this message | ||
bjori Sat Oct 27 14:47:36 2007 UTC
Modified files:
/phpdoc/en/reference/regex reference.xml
Log:
Lets use the superglobal array in the example
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/regex/reference.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/reference/regex/reference.xml
diff -u phpdoc/en/reference/regex/reference.xml:1.13 phpdoc/en/reference/regex/reference.xml:1.14
--- phpdoc/en/reference/regex/reference.xml:1.13 Wed Jun 20 22:25:17 2007
+++ phpdoc/en/reference/regex/reference.xml Sat Oct 27 14:47:36 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
<!-- Purpose: basic.text -->
<!-- Membership: core -->
@@ -75,7 +75,7 @@
ereg("abc$", $string);
// Returns true if client browser is Netscape 2, 3 or MSIE 3.
-eregi("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT);
+eregi("(ozilla.[23]|MSIE.3)", $_SERVER["HTTP_USER_AGENT"]);
// Places three space separated words into $regs[1], $regs[2] and $regs[3].
ereg("([[:alnum:]]+) ([[:alnum:]]+) ([[:alnum:]]+)", $string, $regs);