wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_basename › WordPress Function

Od3.1.0
Przestarzałyn/a
wp_basename ( $path, $suffix = '' )
Parametry: (2)
  • (string) $path A path.
    Wymagane: Tak
  • (string) $suffix If the filename ends in suffix this will also be cut off.
    Wymagane: Nie
    Domyślny: (puste)
Powrót:
  • (string)
Zdefiniowane na:
Codex:

i18n-friendly version of basename().



Źródło

function wp_basename( $path, $suffix = '' ) {
	return urldecode( basename( str_replace( array( '%2F', '%5C' ), '/', urlencode( $path ) ), $suffix ) );
}