CODE
LIBARY.COM
Home
/
PHP
PHP Simple way to get extension
Simple way to get extension
<? $file = "test.php"; basename("$file",".php"); ?>
$file = "test.php"; basename("$file",".php"); ?>
Copy to Clipboard
Related Snippets
PHP Basic Directory Listing
PHP Quick Sort
PHP Timezone Conversion Tool
PHP Get User Real IP Address | PHP Function to Retrieve IP Address
PHP Arabic to Farsi and Farsi to Arabic Converter
PHP PHP Self Page Name Extraction
PHP Multi Language Seconds to String Converter
PHP HTTPd Software Version Detection
PHP Retrieve Page ID in WordPress using get_page_by_title()
PHP Another PHP Calendar