9951 explained code solutions for 126 technologies


phpGet file extension


$ext = pathinfo($file_name, PATHINFO_EXTENSION);ctrl + c
$ext

extension will be placed here

pathinfo

function to get parts of file path

$file_name

name of the file to get extension for

PATHINFO_EXTENSION

will ask pathinfo function to return extension only