Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_basename [ WordPress Function ]

wp_basename ( $path, $suffix = '' )
Parameters:
  • (string) $path A path.
  • (string) $suffix If the filename ends in suffix this will also be cut off.
Returns:
  • (string)
Defined at:



i18n friendly version of basename()

Source


<?php
function wp_basename$path$suffix '' ) {
    return 
urldecodebasenamestr_replace'%2F''/'urlencode$path ) ), $suffix ) );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics