Accessing the image address
www.aaa.com/public/img/123.jpg
How to get 123.jpg when accessing the image address
Use pathinfo(), for example:
pathinfo()
pathinfo('www.aaa.com/public/img/123.jpg',PATHINFO_BASENAME)
PHP documentation: http://php.net/manual/en/func...
Use
pathinfo()
, for example:PHP documentation: http://php.net/manual/en/func...