Source Code:
(back to article)
<?php $path = '/var/www/html/index.php'; $info = pathinfo($path, PATHINFO_EXTENSION); echo $info; // Output: php
Result:
Report an issue