这么写是不是脱裤子放屁

WBOY
Release: 2016-06-13 12:20:12
Original
962 people have browsed it

这样写是不是脱裤子放屁啊
看到一段代码是这样写的
$site_url = strtolower('http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/index.php')).'/shop/index.php');
然后我试了一下,
其实把红色部分去掉也是一样,但我不明白他为啥要脱裤子放屁呢
$site_url = strtolower('http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/index.php')).'/shop/index.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