converting a char variable to an int?

From: Date: Mon, 14 Jun 2004 15:31:08 +0000
Subject: converting a char variable to an int?
Groups: php.general 
Request: Send a blank email to php-general+get-188224@lists.php.net to get a copy of this message
Hi, I have a variable that is created using the date command: $date = date("Ymd"); but its not working in my database this way (when I explicity enter 20040614 in my database, it works though). so I think PHP is making $date a character variable, so how can I force or change the caste of $date to force it to be an integer variable? thanks

« previous php.general (#188224) next »