Answers for "get file name and extension from url php"

PHP
11

php get file extension from filename

$ext = pathinfo($filename, PATHINFO_EXTENSION);
Posted by: Guest on October-26-2020
2

filename php

echo "1) ".basename("/etc/sudoers.d", ".d").PHP_EOL;//sudoers
echo "2) ".basename("/etc/sudoers.d").PHP_EOL;//sudoers.d
echo "3) ".basename("/etc/passwd").PHP_EOL;//passwd
echo "4) ".basename("/etc/").PHP_EOL;//etc
echo "5) ".basename(".").PHP_EOL;//.
echo "6) ".basename("/");//
Posted by: Guest on September-11-2020

Code answers related to "get file name and extension from url php"

Browse Popular Code Answers by Language