Home >Backend Development >PHP Tutorial > php调用本地php文件有关问题

php调用本地php文件有关问题

WBOY
WBOYOriginal
2016-06-13 12:39:091004browse

php调用本地php文件问题
我有一个php文件,要循环一个数组构造一个url数组。

$keywords = keyword_split($res['keywords']);<br />
$path='../ajax/search.php?key=';<br />
foreach($keywords as $k){<br />
	$filename = $path.$k;<br />
	$content = 这里怎么调用这个php文件并返回内容???;<br />
	var_dump($content);<br />
}

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