Re: converting a char variable to an int?
| From: | Adam Williams | Date: | Mon, 14 Jun 2004 15:38:03 +0000 |
| Subject: | Re: converting a char variable to an int? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188225@lists.php.net to get a copy of this message | ||
eh nevermind, I found settype();
:) thanks
On Mon, 14 Jun 2004, Adam Williams wrote:
> 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
>
>