http://php.net/manual/en/function.pathinfo.php
pathinfo — Returns information about a file path
$filename = pathinfo('filename.md.txt', PATHINFO_FILENAME); // returns 'filename.md'
More Related Contents:
- PHP Errors – Total of four [closed]
- How do I check if a string contains a specific word?
- In PHP, how do you change the key of an array element?
- php $_POST array empty upon form submission
- How to generate in PHP all combinations of items in multiple arrays
- How to Use AJAX in a WordPress Shortcode?
- DOMDocument in php
- Upload Progress Bar in PHP
- Best solution to protect PHP code without encryption
- What is the difference between a language construct and a “built-in” function in PHP?
- PHP: Access Array Value on the Fly
- Insert multiple rows with one query MySQL
- Why won’t my PHP app send a 404 error?
- Why does PHP 5.2+ disallow abstract static class methods?
- Best way to avoid the submit due to a refresh of the page
- Force Browser to download Image with Javascript window.open?
- PHP: How can I explode a string by commas, but not wheres the commas are within quotes?
- Limit execution time of an function or command PHP
- Regular expressions for a range of unicode points PHP
- Allow only [a-z][A-Z][0-9] in string using PHP
- Session hijacking and PHP
- How to do AES256 decryption in PHP?
- How to GROUP BY and SUM PHP Array? [duplicate]
- Composer cannot download files
- What’s the difference between is_null($var) and ($var === null)?
- MySQL ORDER BY rand(), name ASC
- PHP global or $GLOBALS
- Why is type hinting necessary in PHP?
- Laravel change locale not working
- Force Download CSV File