php - How to get the file name of the accessed image in laravel?
漂亮男人
漂亮男人 2017-06-12 09:21:13
0
1
542

Accessing the image address

www.aaa.com/public/img/123.jpg

How to get 123.jpg when accessing the image address

漂亮男人
漂亮男人

reply all(1)
迷茫

Use pathinfo(), for example:

pathinfo('www.aaa.com/public/img/123.jpg',PATHINFO_BASENAME)

PHP documentation: http://php.net/manual/en/func...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!