downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SplFileInfo::getMTime> <SplFileInfo::getInode
[edit] Last updated: Fri, 07 Jun 2013

view this page in

SplFileInfo::getLinkTarget

(PHP 5 >= 5.2.2)

SplFileInfo::getLinkTargetObtiene el destino de un enlace del sistema de ficheros

Descripción

public string SplFileInfo::getLinkTarget ( void )

Obtiene el destino de un enlace del sistema de ficheros.

Nota:

El destino no puede ser una ruta real en el sistema de ficheros. Use SplFileInfo::getRealPath() para determinar la ruta verdadera en el sistema de fucheros.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve el destino de el enlace del sistema de ficheros.

Errores/Excepciones

Lanza una RuntimeException en caso de error.

Ejemplos

Ejemplo #1 Ejemplo de SplFileInfo::getLinkTarget()

<?php
$info 
= new SplFileInfo('/Users/bbieber/workspace');
if (
$info->isLink()) {
    
var_dump($info->getLinkTarget());
    
var_dump($info->getRealPath());
}
?>

El resultado del ejemplo sería algo similar a:

string(19) "Documents/workspace"
string(34) "/Users/bbieber/Documents/workspace"

Ver también



add a note add a note User Contributed Notes SplFileInfo::getLinkTarget - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites