Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you want to grab the arguments of a view using PHP in Drupal 6.x or 7.x use the following:
// Let's get the current view
$view = views_get_current_view();
// Now we can get the views arguments
print $view->args;
This way, you can grab the arguments for use in the Header or Footer of the view.