1.7.x drupal.inc drupal_basename($uri, $suffix = NULL)
1.10.x drupal.inc drupal_basename($uri, $suffix = NULL)
1.10.x drupal.inc drupal_basename($uri, $suffix = NULL)
1.10.x drupal.inc drupal_basename($uri, $suffix = NULL)
1.8.x drupal.inc drupal_basename($uri, $suffix = NULL)
1.9.x drupal.inc drupal_basename($uri, $suffix = NULL)

Gets the filename from a given path.

Deprecated

since 1.0.0

See also

backdrop_basename()

Related topics

File

includes/drupal.inc, line 1672
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_basename($uri, $suffix = NULL) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_basename($uri, $suffix);
}