Symfony: there is a "0" (zero) in a sfWidgetFormChoice

Posted by user248959 on Stack Overflow See other posts from Stack Overflow or by user248959
Published on 2010-06-01T17:47:50Z Indexed on 2010/06/01 17:53 UTC
Read the original article Hit count: 140

Filed under:
|
|

Hi,

i want to show a select which options are the character '-' and a range of integers.

I have this:

$years = range(14,130);
new sfWidgetFormChoice(array('choices' => 
        array_merge(array('' =>  '-',array_combine($years,$years)));

The problem: between the '-' and the range of integers there is a "0" (bold and italic).

Any help?

Regards

Javi

© Stack Overflow or respective owner

Related posts about php

Related posts about select