PHP 文本操作,取文本有关问题

WBOY
Release: 2016-06-13 12:43:55
Original
791 people have browsed it

PHP 文本操作,取文本问题
域名:http://localhost/down.php?add=down/0522/img.png (域名为随机)


$img = $add

echo $img;
?>
===================================================================

$img 只取图片的名称(img.png)

也就是说删除 (http://localhost/down?add=down/0522/)只取 (img.png)


什么写?求大神。

PHP 域名
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template