How to render filename into human readable text?

In which way can I render filename like

“BigFilenameWithContent.jpg” / “big_filename_with_content.jpg”

into human readable text like

“Big filename with content”

in laravel 8 / php 8 ?

Thanks !

Well, this would be a relatively simple string parse.
Explode the string on “_”.
preg_split your string on /(?=[A-Z])/ (Positive lookahead assertion)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.