2010年12月27日
PHP: $_REQUESTと$_GET、$_POSTはどこが違うか
$_GET、 $_POST そして $_COOKIE の内容をまとめた連想配列です。
もう少し説明を加えると、
In the beginning of execution, $REQUEST is a clone of $_GET. $_POST is then merged into the array, overwriting keys if they exist in both $GET and $_POST. Finally, $_COOKIE is merged into the array, again overwriting old values.
まずは$_GETのクローンでそこに$_POSTをマージする感じで、同じキーのものがあれば上書きされます。同じくその後$_COOKIEもマージします。
なので本当にPOSTで受取るものは$_REQUESTに書き換えてはいけないと思いますね。