mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Lets use the superglobal array in the example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@244935 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fff9056c6b
commit
91304a95bb
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue