Closed AlexOConnorHub closed 2 years ago
By using str_replace, all instances of the extension is replaced in the filename, not just the extension. basename is designed to just remove the extension, and not replace very occurrence.
str_replace
basename
By using
str_replace
, all instances of the extension is replaced in the filename, not just the extension.basename
is designed to just remove the extension, and not replace very occurrence.