Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DirectoryIterator::getBasename vs DirectoryIterator::getFilename

Tags:

php

Is there any difference between getBaseName and getFilename when called with no arguments?

like image 872
Tyilo Avatar asked Feb 28 '12 20:02

Tyilo


1 Answers

As far as I know there is no difference except that getBaseName has a single parameter to cut suffix's of the file name. No significant difference. Although the Base suggest something more - I am quite sure it points to being able to cut things off at the end and nothing more.

like image 79
Wesley van Opdorp Avatar answered Oct 13 '22 11:10

Wesley van Opdorp