Although not specified, the author seems to be using cakephp,
You can use it like this:
$array = array(
'' => 'Selecione...'
);
for ($i = 1; $i < 49; ++$i) {
if ($i === 1) {
$array['1'] = '1 Semana';//Singular :)
} else {
$array[(string) $i] = $i . ' Semanas';
}
}
echo $this->Form->input('Semana', array(
'type' => 'select',
'options' => $array
));
The result will be something like:
<div class="input">
<label for="Semana">Field</label>
<select id="Semana" name="data[User][Semana]">
<option value="">Selecione...</option>
<option value="1">1 Semana</option>
<option value="2">2 Semanas</option>
...
</select>
</div>
The number is the value of the select, the text of the select, or both?
– mgibsonbr