Get All Options of a CCK Select Field

If you have a CCK Select field and you would want to extract the various options available in that field via custom code, the following lines help you achieve that.

<?php
$field
= field_info_field('field_name');
$allowed_values = list_allowed_values($field);
?>

Get the field name of the field(Machine Name) and list all possible options.