Home  >  Article  >  Backend Development  >  这是一个窃贼程序,但为什么字符串写成这样却不能赋值?

这是一个窃贼程序,但为什么字符串写成这样却不能赋值?

WBOY
WBOYOriginal
2016-06-13 12:36:59894browse

这是一个小偷程序,但为什么字符串写成这样却不能赋值??
这只是部分程序:

文件a:

<br />
function cut($file, $from, $end) {<br />
		echo $from;<br />
		echo $end;<br />
		die();<br />
		$message = explode($from, $file);<br />
		$message = explode($end, $message[1]);<br />
		return $message[0];<br />
	}<br />


文件b:
<br />
$a = cut($fileContent, '<div class=\"box\">', '</div>');<br />


文件b中函数后两个参数这样写,在文件a中echo出来为空;但参数值改为其他字符串就无问题,为什么会这样??

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