Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / basename
basename

basename

(PHP 3, PHP 4 )

basename --  Devuelve la parte del path correspondiente al nombre del fichero

Descripción

string basename ( string path)

Dada una cadena (string) que contiene el path de un fichero, esta función devuelve el nombre base del fichero.

En Windows, tanto la barra (/) como la barra inversa (\) pueden usarse como caracter separador en el path. En otros entornos, se usa la barra directa (/).

Ejemplo 1. Ejemplo de basename()

$path = "/home/httpd/html/index.php3";
$file = basename($path); // $file toma el valor "index.php3"

Ver también: dirname()


© 1998-2007 Gold Vision Communications All Rights Reserved.