note 94130 deleted from function.gettype by danbrown
| From: | danbrown@php.net | Date: | Sun, 18 Oct 2009 16:15:01 +0000 |
| Subject: | note 94130 deleted from function.gettype by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161863@lists.php.net to get a copy of this message | ||
Note Submitter: Yukull
----
I would like to compare type of 2 vars, I can use getType like that :
<?
function sameType($a,$b)
{
return getType($a)==getType($b);
}
?>
but is their a better way who don't involves string comparison ?