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.