note 88228 added to function.filter-has-var

From: Date: Fri, 16 Jan 2009 09:54:18 +0000
Subject: note 88228 added to function.filter-has-var
Groups: php.notes 
Request: Send a blank email to php-notes+get-149308@lists.php.net to get a copy of this message
Please note that the function does not check the live array, it actually checks the content received by php: <?php $_GET['test'] = 1; echo filter_has_var(INPUT_GET, 'test') ? 'Yes' : 'No'; ?> would say "No", unless the parameter was actually in the querystring. Also, if the input var is empty, it will say Yes. ---- Server IP: 83.137.20.135 Probable Submitter: 213.84.233.128 ---- Manual Page -- http://www.php.net/manual/en/function.filter-has-var.php Edit -- https://master.php.net/note/edit/88228 Del: integrated -- https://master.php.net/note/delete/88228/integrated Del: useless -- https://master.php.net/note/delete/88228/useless Del: bad code -- https://master.php.net/note/delete/88228/bad+code Del: spam -- https://master.php.net/note/delete/88228/spam Del: non-english -- https://master.php.net/note/delete/88228/non-english Del: in docs -- https://master.php.net/note/delete/88228/in+docs Del: other reasons-- https://master.php.net/note/delete/88228 Reject -- https://master.php.net/note/reject/88228 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149308) next »