Warning Message From array_key_exists Function in PHP

The following code will give you PHP Warnings: “Warning: array_key_exists(): The first argument should be either a string or an integer” [php] // $parts contains an array of values $publicationId = floor($parts[0]); if (array_key_exists($publicationId, $this->publisherPublicationMap)) { return $this->publisherPublicationMap[$publicationId]; } [/shell] The reason being that function “floor” returns value of “float”, …