note 110876 added to function.array-key-exists
| From: | nitech at gmail dot com | Date: | Tue, 18 Dec 2012 08:30:48 +0000 |
| Subject: | note 110876 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192579@lists.php.net to get a copy of this message | ||
Check whether a certain header was sent:
function hasHeader($which)
{
if (array_key_exists($which, getallheaders())) return true;
}
----
Server IP: 69.147.83.199
Probable Submitter: 37.44.146.144
----
Manual Page -- http://php.net/manual/en/function.array-key-exists.php
Edit -- https://master.php.net/note/edit/110876
Del: integrated -- https://master.php.net/note/delete/110876/integrated
Del: useless -- https://master.php.net/note/delete/110876/useless
Del: bad code -- https://master.php.net/note/delete/110876/bad+code
Del: spam -- https://master.php.net/note/delete/110876/spam
Del: non-english -- https://master.php.net/note/delete/110876/non-english
Del: in docs -- https://master.php.net/note/delete/110876/in+docs
Del: other reasons-- https://master.php.net/note/delete/110876
Reject -- https://master.php.net/note/reject/110876
Search -- https://master.php.net/manage/user-notes.php