You can use array.

        var arr = new Array();

        arr['Some Text 1'] = 41;
        arr['Some Text 2'] = 42;
        arr['Some Text 3'] = 43;
        arr['Some Text 4'] = 44;
        arr['Some Text 5'] = 45;

        alert(arr['Some Text 4'])

On Sep 10, 12:43 am, TiGeRWooD <tigwod.e...@gmail.com> wrote:
> Hi,
>
> Is there a way to use
>
> $key => $value
> 45 => 'some text'
>
> And search in $value (some text) but when I select 'some text', it's
> the $key (45) as input value instead 'some text' ?
>
> Thanks in advance.
>
> ps : sorry for my poor english.

Reply via email to