Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10323 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92188 invoked by uid 1010); 8 Jun 2004 17:41:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92150 invoked from network); 8 Jun 2004 17:41:38 -0000 Received: from unknown (HELO dharana.net) (217.172.66.21) by pb1.pair.com with SMTP; 8 Jun 2004 17:41:38 -0000 Received: (qmail 21387 invoked from network); 8 Jun 2004 17:41:31 -0000 Received: from unknown (HELO ?127.0.0.1?) (212.106.246.168) by 192.168.0.21 with SMTP; 8 Jun 2004 17:41:31 -0000 Message-ID: <40C5FA4A.20206@dharana.net> Date: Tue, 08 Jun 2004 19:41:30 +0200 User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-DCC: : X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on magma X-Spam-Level: X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL autolearn=no version=2.63 Subject: date('w') return type From: dharana@dharana.net (dharana) I know I can just cast to int, but is it ok to return an string for things that can only be numbers? prints false, but I expected it to return an int. Am I wrong? I imagine it's the same thing with the rest of date's return values. Btw, I don't hope it will be changed because it would probably break a lot of scripts. -- Juan Alonso This message represents the official view of the voices in my head