php - Array value label? -


i have array (car, suv, truck, bike) that's used in form. when option selected value saved customers account in database. value array position (eg: 0, 1, 2, 3).

i want info displayed on page in table using php i'm using magento. displays database saved value (0,1,2,3), want show ((car, suv, truck, bike). how do this?

i need way make know 0=car, 1=suv, 2=truck, 3=bike)

heres table looks now: enter image description here

the make column represents vehicle manufacturer (toyota, honda, etc)and type represents (car, bike, suv)

please help!

make table field type an enum matches array specified.

more details

an enum data type array maps key value. if change column type enumeration, database display human readable value instead of number (e.g., car, suv, truck, bike).

also, can interact enum using key or value shouldn't have change current implementation.