Why is the $todaydatestring data type displayed as Boolean?
| From: | Varuna Seneviratna | Date: | Thu, 11 Sep 2008 13:23:50 +0000 |
| Subject: | Why is the $todaydatestring data type displayed as Boolean? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-29027@lists.php.net to get a copy of this message | ||
Why is the $todaydatestring data type displayed as Boolean?
<?php
$todaydate=11092008;
echo "The data type of todaydate is
".gettype($todaydate)."</br>";
$mydatestring=settype($todaydate,"String");
echo "The data type of mydatestring is ".gettype($mydatestring);
?>
Varuna
--
Varuna Seneviratna
No 514 Udumulla Road
Battaramulla
Sri Lanka
Tel : 011-2888620
Mobile:0715617141