Home  >  Article  >  Backend Development  >  notepad++怎么传参运行php文件

notepad++怎么传参运行php文件

WBOY
WBOYOriginal
2016-06-13 13:37:32728browse

notepad++如何传参运行php文件?
notepad++如何传参运行php文件?


------解决方案--------------------
CMD:
d:/PHPnow-1.5.6/php-5.2.14-Win32/php.exe laji.php aaa

laji.php 内容:
var_dump($argv);
$laji = $argv[1];
echo $laji;
?>

http://www.php.net/manual/zh/reserved.variables.argv.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