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