Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: min(eight, eight)?
(Example: nine)

The Note You're Voting On

Jan
5 years ago
If you're looking to extract only the "ex.php" part of the full "/home/bjori/tmp/ex.php", then use:

<?php
echo basename($e->getFile())
?>

or better yet, esp. if your paths possibly contain non-ASCII characters:

<?php
echo pathinfo($e->getFile())['basename']
?>

<< Back to user notes page

To Top