手册里的
Request 变量:$_REQUEST
注: 在 PHP 4.1.0 及以后版本使用。之前的版本,没有等价的数组。 注: 在 PHP 4.3.0 之前,$_FILES 也被包括在 $_REQUEST 数组中。 此关联数组包含 $_GET,$_POST 和 $_COOKIE 中的全部内容。 这是一个“superglobal”,或者可以描述为自动全局变量。这只不过意味着它在所有的脚本中都有效。在函数或方法中您不需要使用 global $_REQUEST; 来访问它。 如果设置了 register_globals 指令,这些变量也在所有脚本中可用;也就是,分离了 $_REQUEST 数组。相关信息,请参阅安全的相关章节 使用 Register Globals。这些单独的全局变量不是自动全局变量。 -------------------------
ob_start
(PHP 4 )ob_start -- Turn on output buffering
Description
bool ob_start ( [callback output_callback])
This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. The contents of this internal buffer may be copied into a string variable using ob_get_contents(). To output what is stored in the internal buffer, use ob_end_flush(). Alternatively, ob_end_clean() will silently discard the buffer contents. An optional output_callback function may be specified. This function takes a string as a parameter and should return a string. The function will be called when ob_end_flush() is called, or when the output buffer is flushed to the browser at the end of the request. When output_callback is called, it will receive the contents of the output buffer as its parameter and is expected to return a new output buffer as a result, which will be sent to the browser. If the output_callback is not a callable function, thos function will return FALSE. 
-----------------------------
explode
(PHP 3, PHP 4 )explode -- Split a string by string
Description
array explode ( string separator, string string [, int limit])
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator. If limit is set, the returned array will contain a maximum of limit elements with the last element containing the rest of string. If separator is an empty string (""), explode() will return FALSE. If separator contains a value that is not contained in string, then explode() will return an array containing string. Although implode() can, for historical reasons, accept its parameters in either order, explode() cannot. You must ensure that the separator argument comes before the string argument. 注: The limit parameter was added in PHP 4.0.1 

解决方案 »

  1.   

    手册中有全部的用法
    @是用来屏闭本行错误
    Request 变量:$_REQUEST
    注: 在 PHP 4.1.0 及以后版本使用。之前的版本,没有等价的数组。 注: 在 PHP 4.3.0 之前,$_FILES 也被包括在 $_REQUEST 数组中。 此关联数组包含 $_GET,$_POST 和 $_COOKIE 中的全部内容。 这是一个“superglobal”,或者可以描述为自动全局变量。这只不过意味着它在所有的脚本中都有效。在函数或方法中您不需要使用 global $_REQUEST; 来访问它。 如果设置了 register_globals 指令,这些变量也在所有脚本中可用;也就是,分离了 $_REQUEST 数组。相关信息,请参阅安全的相关章节 使用 Register Globals。这些单独的全局变量不是自动全局变量。 ob_start
    (PHP 4 )ob_start -- Turn on output buffering
    Description
    bool ob_start ( [callback output_callback])
    This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. The contents of this internal buffer may be copied into a string variable using ob_get_contents(). To output what is stored in the internal buffer, use ob_end_flush(). Alternatively, ob_end_clean() will silently discard the buffer contents. An optional output_callback function may be specified. This function takes a string as a parameter and should return a string. The function will be called when ob_end_flush() is called, or when the output buffer is flushed to the browser at the end of the request. When output_callback is called, it will receive the contents of the output buffer as its parameter and is expected to return a new output buffer as a result, which will be sent to the browser. If the output_callback is not a callable function, thos function will return FALSE. 注: In PHP 4.0.4, ob_gzhandler() was introduced to facilitate sending gz-encoded data to web browsers that support compressed web pages. ob_gzhandler() determines what type of content encoding the browser will accept and will return it's output accordingly. 注: Before PHP 4.3.2 this function did not return FALSE in case the passed output_callback can not be executed. Output buffers are stackable, that is, you may call ob_start() while another ob_start() is active. Just make sure that you call ob_end_flush() the appropriate number of times. If multiple output callback functions are active, output is being filtered sequentially through each of them in nesting order. ob_end_clean(), ob_end_flush(), ob_clean(), ob_flush() and ob_start() may not be called from a callback function. If you call them from callback function, the behavior is undefined. If you would like to delete the contents of a buffer, return "" (a null string) from callback function. 例子 1. User defined callback function example<?phpfunction callback($buffer) {  // replace all the apples with oranges
      return (ereg_replace("apples", "oranges", $buffer));}ob_start("callback");?><html>
    <body>
    <p>It's like comparing apples to oranges.
    </body>
    </html><?phpob_end_flush();?>
     Would produce: <html>
    <body>
    <p>It's like comparing oranges to oranges.
    </body>
    </html>
     
     explode
    (PHP 3, PHP 4 )explode -- Split a string by string
    Description
    array explode ( string separator, string string [, int limit])
    Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator. If limit is set, the returned array will contain a maximum of limit elements with the last element containing the rest of string. If separator is an empty string (""), explode() will return FALSE. If separator contains a value that is not contained in string, then explode() will return an array containing string. Although implode() can, for historical reasons, accept its parameters in either order, explode() cannot. You must ensure that the separator argument comes before the string argument. 注: The limit parameter was added in PHP 4.0.1 例子 1. explode() examples<?php
    // Example 1
    $pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";
    $pieces = explode(" ", $pizza);
    print $pieces[0]; // piece1
    print $pieces[1]; // piece2// Example 2
    $data = "foo:*:1023:1000::/home/foo:/bin/sh";
    list($user,$pass,$uid,$gid,$gecos,$home,$shell) = explode(":",$data);
    print $user; // foo
    print $pass; // *?>