In this tutorial, we will learn How to Get File Extension in PHP. We use the PHP default pathinfo() function to get the file extension of a file. The pathinfo() function return information about the send file path. Now we have a string variable named file_name that has the value of a local file path.

Output: The file extension is : php

The post How to Get File Extension in PHP appeared first on Devnote.

#php 

Tutorial to Get File Extension in PHP
1.35 GEEK