note 17228 added to function.get-class

From: Date: Fri, 30 Nov 2001 15:49:03 +0000
Subject: note 17228 added to function.get-class
Groups: php.notes 
Request: Send a blank email to php-notes+get-21480@lists.php.net to get a copy of this message
To get the type of a non-object variable (integer, string, boolean, etc..), use gettype(). If you want to know the type of variable or the class name if the parameter is an object, call gettype($var) first, if it returns "object", call get_class($var) (Remove the "nospam." portion of my email address to reply via email) -- http://www.php.net/manual/en/function.get-class.php http://master.php.net/manage/user-notes.php?action=edit+17228 http://master.php.net/manage/user-notes.php?action=delete+17228 http://master.php.net/manage/user-notes.php?action=reject+17228

« previous php.notes (#21480) next »