Get arguments from a view I have a view object and I'd like to get the contextual filters that were passed to it.

I have this tidbit of code that prints out the arguments field name.

if (!empty($view-&gt;argument)) {
  foreach ($view-&gt;argument as $id =&gt; $arg) {
    print $arg-&gt;field;
  }
}


I'm trying to get the values of those fields.
$view-&gt;args[0] returns the first argument.