Drupal Association members fund grants that make connections all over the world.
Posted by chx on
Change record status:
Published (View all published change records)
Introduced in branch:
Introduced in version:
This function is used to get the filename from a file path. PHP's
basename() removes all non-US-ASCII characters, so
drupal_basename() was added as a workaround.
$filename = basename($path);
$filename = drupal_basename($path);