CODE
LIBARY.COM
Home
/
PHP
PHP Get extension with explode
Get extension with explode
<? $file = "test.txt"; $part = explode(".",$file); $ext = $part[count($part)-1]; ?>
$file = "test.txt"; $part = explode(".",$file); $ext = $part[count($part)-1]; ?>
Copy to Clipboard
Related Snippets
PHP Delete file in all directories
PHP PHP Functions for WordPress Page Content and Information Retrieval
PHP Multi Language Seconds to String Converter
PHP Chain of Command Design Pattern
PHP Curl
PHP Google Wesite Rank Check
PHP Ping
PHP Apache Headers Language Detect
PHP Detecting Online Users
PHP File Visit Counter