Get Extension of File Path using PHP December 29, 2020 PHP 0 Comments 464 Views pathinfo function <?php $path = '/var/tmp/archived.tar.gz'; $extension = '.'.pathinfo($path, PATHINFO_EXTENSION); echo $extension;
Leave a Comment
Cancel reply