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 Arabic to Farsi and Farsi to Arabic Converter
PHP Detecting Online Users
PHP Displaying the Number of Posts in an Archive Page with PHP
PHP URL Redirection
PHP News Pager Pro
PHP Quick Sort
PHP IP Deny using Array
PHP Count file lines in a folder
PHP Upper letter in a new sentence
PHP GD Clock