Re: convert numerical day of week
| From: | Greg Donald | Date: | Tue, 22 May 2007 22:54:46 +0000 |
| Subject: | Re: convert numerical day of week | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255354@lists.php.net to get a copy of this message | ||
On 5/22/07, Robert Cummings <robert@interjinn.com> wrote:
Yours is the least maintainable.Hehe.. with 4 times as many lines of code and 160% more bytes of code overall?
cat locale.php|grep -v ^$|wc -l16
cat simple.php|grep -v ^$|wc -l4
ls -lavh-rw-r--r-- 1 destiney destiney 347B May 22 17:35 locale.php
-rw-r--r-- 1 destiney destiney 133B May 22 17:35 simple.phpWatch me switch this from English to Spanish: #$days = array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ); $days = array( 'Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado' ); Tada! That was the easiest maintenance programming ever.
I have nothing to learn from you that I didn't learn in kindergarten.They didn't teach PHP where I attended kindergarten. Is that a Canadian thing? -- Greg Donald http://destiney.com/