note 111587 added to function.filter-has-var

From: Date: Wed, 06 Mar 2013 14:15:29 +0000
Subject: note 111587 added to function.filter-has-var
Groups: php.notes 
Request: Send a blank email to php-notes+get-193959@lists.php.net to get a copy of this message
Through this example i think you can better understand if ( !filter_has_var(INPUT_GET, 'email') ) { echo "Email Not Found"; }else{ echo "Email Found"; } Output localhost/nanhe/test.php?email=1 //Email Found localhost/nanhe/test.php?email //Email Found http://localhost/nanhe/test.php //Email Not Found Consider on second example http://localhost/nanhe/test.php $_GET['email']="info@nanhe.in"; if ( !filter_has_var(INPUT_GET, 'email') ) { echo "Email Not Found"; }else{ echo "Email Found"; } But output will be Email Not Found ---- Server IP: 69.147.83.199 Probable Submitter: 210.7.74.130 ---- Manual Page -- http://php.net/manual/en/function.filter-has-var.php Edit -- https://master.php.net/note/edit/111587 Del: integrated -- https://master.php.net/note/delete/111587/integrated Del: useless -- https://master.php.net/note/delete/111587/useless Del: bad code -- https://master.php.net/note/delete/111587/bad+code Del: spam -- https://master.php.net/note/delete/111587/spam Del: non-english -- https://master.php.net/note/delete/111587/non-english Del: in docs -- https://master.php.net/note/delete/111587/in+docs Del: other reasons-- https://master.php.net/note/delete/111587 Reject -- https://master.php.net/note/reject/111587 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193959) next »