$method
判断 HTTP 请求的方法 ,默认值为 GET。
【定义】 文件:xiunophp/xiunophp.php 大约 77 行:
$method = $_SERVER["REQUEST_METHOD"];
【用例】
<?php
include "./xiunophp/xiunophp.php";
echo $method;
// GET
?>
判断 HTTP 请求的方法 ,默认值为 GET。
【定义】 文件:xiunophp/xiunophp.php 大约 77 行:
$method = $_SERVER["REQUEST_METHOD"];
【用例】
<?php
include "./xiunophp/xiunophp.php";
echo $method;
// GET
?>