Get Exposed Filter Value How does one get the actual value for an exposed filter?

I can get the 'id' for a filter value using the following code and pulling the data out of the array, but this just returns integer values of 1,2,3,etc.:

$view = views_get_current_view();
$view-&gt;exposed_input['filter_name'];


using $view-&gt;get_exposed_input() results in the exact same issue.

How do I get the actual text string that is applied for the filter?

Specifically I'm trying to do this with a Global PHP field.
The simplest way to do this is by using a Taxonomy to define your filter. By default, the 'IDs' returned in the array will be TIDs, which you can link back to Term name.

This post provides some easy instructions on how to use a Taxonomy as your filter (you possibly need to add it as a relationship in your view)

Get your IDs (values) the same way previously:

$view = views_get_current_view();
$view-&gt;exposed_input['filter_name'];


Then simply step through the array to pick up and match the IDs to the term name:

$view = views_get_current_view();
foreach ($view-&gt;exposed_input['filter_name'] as $tid) {
  $term = taxonomy_term_load($tid);
  $name = $term-&gt;name;
  print $name;
}


Boom!