PHP 8.5.0 Alpha 4 available for testing

Voting

: min(two, four)?
(Example: nine)

The Note You're Voting On

wloske at yahoo dot de
15 years ago
It should be mentioned that the function returns the name of the directory if "filename" is of type "directory". Hence

<?php
$info
= new SplFileInfo('/path/to/');
var_dump($info->getFilename());
?>

should return "to"

The function name is kind of misleading here and I am glad to have it tried.

<< Back to user notes page

To Top