Blogger Information
Blog 263
fans 3
comment 2
visits 113368
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
清除 $_POST 和 $_GET 的值
福哥的博客
Original
1746 people have browsed it

清空全部$_POST值

if (count($_POST) > 0) {
   $_POST = array();
}

清空全部$_GET值

if (count($_GET) > 0) {
   $_GET = array();
}


清空特定的$_POST值

if(isset($_POST['baidu'])){
    unset($_POST['baidu']);
}

清空特定的$_GET值

if(isset($_GET['baidu'])){
    unset($_GET['baidu']);
}


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post