PHP Array Exercises : Extension of a file
Write a PHP program to get the extension of a file.
Sample Solution:
PHP Code:
Output:
txt
Flowchart:

PHP Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a PHP program to get the index of the highest value in an associative array.
Next: Write a PHP function to search a specified value within the values of an associative array.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.