note 52402 added to ref.array
| From: | garis at intec dot edu dot do | Date: | Fri, 29 Apr 2005 15:55:24 +0000 |
| Subject: | note 52402 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88758@lists.php.net to get a copy of this message | ||
this array are always used on form querys... is a nice way to simplify the date inputs
<?php
$dia = array('',
'Lunes','Martes','Miercoles','Jueves','Viernes','Sabado',
'Domingo');
$mes = array('',
'Enero','Febrero','Marzo','Abril','Mayo','Junio',
'Julio', 'Agosto', 'Septiembre', 'Octubre',
'Noviembre', 'Diciembre');
?>
and you call monday like $dia['1']...
i used it on a form, that have a lot of date inputs, cuz i wanted to minimize the size of my file..
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52402
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52402&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52402&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52402&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52402&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52402&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52402&report=yes
Search -- http://master.php.net/manage/user-notes.php