1 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

core/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);
}