note 108618 deleted from function.array-key-exists by salathe

From: Date: Fri, 11 May 2012 08:44:31 +0000
Subject: note 108618 deleted from function.array-key-exists by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187933@lists.php.net to get a copy of this message
Note Submitter: Ahmsari Fordat ---- If you want to use isset (for speed) instead of using the more rigorous (for correctness) array_key_exists, you may see the following error in your logs as the compiler falls over: PHP Fatal error: Can't use function return value in write context Take heart - many examples show $array($key) - which is apparently wrong for some of us. Try using the normal bracket syntax - $array[$key] - and you'll soon be back on track.

« previous php.notes (#187933) next »