note 81323 deleted from function.gettype by cmb

From: Date: Mon, 02 Nov 2020 21:53:04 +0000
Subject: note 81323 deleted from function.gettype by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215773@lists.php.net to get a copy of this message
Note Submitter: skatebiker at hotmail dot com ---- In some rare cases a class instance object returns false when an object but gettype() returns "object". <?php $x = new classvar(); $save = serialize($x); // ...... $obj = unserialize($save); // here sometimes is_object() returns FALSE if (is_object($x) || gettype($x) === "object") { // ... do something } ?>

« previous php.notes (#215773) next »