PHP Doku:: Returns the path to the file as a string - splfileinfo.tostring.html
Aktuelle Suchanfrage: 21009b70229598c6a80eef8b45bf282b-imagejpeg jpg - 11 Treffer
  1 imageistruecolor
Finds whether an image is a truecolor image - function.imageistruecolor.html
  2 imagejpeg
Ausgabe des Bildes im Browser oder als Datei - function.imagejpeg.html
  3 imagelayereffect
Set the alpha blending flag to use the bundled libgd layering effects - function.imagelayereffect.html
  4 imagegif
Ausgabe des Bildes im Browser oder als Datei - function.imagegif.html
  5 imagesetstyle
Set the style for line drawing - function.imagesetstyle.html
  6 imagepng
Ausgabe eines Bildes im Browser oder als Datei im PNG-Format - function.imagepng.html
  7 gd_info
Retrieve information about the currently installed GD library - function.gd-info.html
  8 imagewbmp
Output image to browser or file - function.imagewbmp.html
  9 imagefilter
Applies a filter to an image - function.imagefilter.html
 10 Liste der Ressource-Typen
Liste der Ressource-Typen - resource.html
mehr Ergebnisse anzeigen...

Bisherige Suchanfragen: (6) anzeigen

Verlauf / Chronik / History: (7) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenStandard PHP Library (SPL)DateibehandlungThe SplFileInfo classSplFileInfo::__toString

Ein Service von Reinhard Neidl - Webprogrammierung.

The SplFileInfo class

<<SplFileInfo::setInfoClass

The SplFileObject class>>

SplFileInfo::__toString

(PHP 5 >= 5.1.2)

SplFileInfo::__toStringReturns the path to the file as a string

Beschreibung

public void SplFileInfo::__toString ( void )

This method will return the file name of the referenced file.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the path to the file.

Beispiele

Beispiel #1 SplFileInfo::__toString() example

<?php
$info 
= new SplFileInfo('foo');
var_dump($info->__toString());
echo 
$info.PHP_EOL;

$info = new SplFileInfo('/usr/bin/php');
var_dump($info->__toString());
echo 
$info.PHP_EOL;
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

string(3) "foo"
foo
string(12) "/usr/bin/php"
/usr/bin/php 


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)