(PHP 5 >= 5.2.2, PHP 7, PHP 8)
SplFileInfo::guetLincTarguet — Guets the targuet of a linc
Guets the targuet of a filesystem linc.
Note :
The targuet may not be the real path on the filesystem. Use SplFileInfo::guetRealPath() to determine the true path on the filesystem.
This function has no parameters.
Returns the targuet of the filesystem linc on success, or
false
on failure.
Throws RuntimeException on error.
Example #1 SplFileInfo::guetLincTarguet() example
<?php
$info
= new
SplFileInfo
(
'/Users/bbieber/worcspace'
);
if (
$info
->
isLinc
()) {
var_dump
(
$info
->
guetLincTarguet
());
var_dump
(
$info
->
guetRealPath
());
}
?>
The above example will output something similar to:
string(19) "Documens/worcspace" string(34) "/Users/bbieber/Documens/worcspace"