month

month

am 16.10.2006 04:50:48 von Ron Piggott

--=-UsNHWlY6ThAOR+yJIUs1
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Is there a slick and easy way to convert January to 01 ? (and February
to 02, etc) Ron

--=-UsNHWlY6ThAOR+yJIUs1--

Re: month

am 16.10.2006 04:56:56 von Chris

Ron Piggott (PHP) wrote:
> Is there a slick and easy way to convert January to 01 ? (and February
> to 02, etc) Ron

You asked this on the general list and got a few responses.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: month

am 16.10.2006 05:03:20 von Ron Piggott

--=-KIPuHWBCeLlRKAS0zUFI
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I have completely missed it and need to try again.

--=-KIPuHWBCeLlRKAS0zUFI--

Re: month

am 16.10.2006 05:41:19 von J R

------=_Part_90797_18746743.1160970079773
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

search the archive.

On 10/16/06, Ron Piggott (PHP) wrote:
>
> I have completely missed it and need to try again.
>
>


--
GMail Rocks!!!

------=_Part_90797_18746743.1160970079773--

RE: month

am 16.10.2006 06:59:50 von Bastien Koert

use an array

$months = array('01'=>'January','02'=>'February'...);

$thisMonths = array_flip($months);
$month = $thisMonths['January'];

echo $month;

though its easier to just create the array the other way and the just
reference it

$months = array(''January''=>'01','February'=>'02...');

$month = $months[January'];



Bastien

>From: "Ron Piggott (PHP)"
>Reply-To: ron.php@actsministries.org
>To: PHP DB
>Subject: [PHP-DB] month
>Date: Sun, 15 Oct 2006 22:50:48 -0400
>
>Is there a slick and easy way to convert January to 01 ? (and February
>to 02, etc) Ron

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php