note 17759 added to function.array-key-exists
| From: | nathan at php2 dot chek dot com | Date: | Sat, 22 Dec 2001 00:41:11 +0000 |
| Subject: | note 17759 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23778@lists.php.net to get a copy of this message | ||
A possible solution for php 4.0.6 users could be:<br>
$array = ("secure" => "https://",
"normal" => "http://");
$keys = array_keys ($array);
if(in_array("secure", $keys)) {
return true;
}
--
http://www.php.net/manual/en/function.array-key-exists.php
http://master.php.net/manage/user-notes.php?action=edit+17759
http://master.php.net/manage/user-notes.php?action=delete+17759
http://master.php.net/manage/user-notes.php?action=reject+17759