gettype() returning string instead of integer

From: Date: Wed, 13 Dec 2000 20:53:45 +0000
Subject: gettype() returning string instead of integer
Groups: php.general 
Request: Send a blank email to php-general+get-30163@lists.php.net to get a copy of this message
In the following situation, I'm finding that PHP4 (CGI) is returning "string" instead of "integer": $myType = gettype($myVar); echo "type is: $myType"; and calling the above code via: <A HREF="http://dom.ext/type.php?myVar=1"> results in "type is: string" no matter what's used in the URL. Should gettype() not return "integer" in the above situation? Am I missing something? The docs didn't mention any gotcha's or notes. TIA, -- Brian Curtis

« previous php.general (#30163) next »