note 17162 deleted from control-structures.switch by spic

From: Date: Wed, 28 Aug 2002 08:50:15 +0000
Subject: note 17162 deleted from control-structures.switch by spic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35883@lists.php.net to get a copy of this message
To translate month names, use an indexed array instead of the switch. i.e $months = array ( ....1 => 'January', ....2 => 'February', ....3 => etc... ) echo $month[1];

« previous php.notes (#35883) next »