Home  >  Article  >  Backend Development  >  PHP 文本操作,取文本有关问题

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

WBOY
WBOYOriginal
2016-06-13 12:43:55772browse

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 域名
Statement:
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