
1. $php_errormsg — 前一个错误信息
<?php@strpos();echo $php_errormsg;?>
2.$http_response_header — HTTP 响应头
<?phpfunction get_contents() { file_get_contents("http://example.com"); var_dump($http_response_header);}get_contents();var_dump($http_response_header);?>3. $argc — 传递给脚本的参数数目
<?phpvar_dump($argc);?>当使用这个命令执行: php script.php arg1 arg2 arg3
4. $argv — 传递给脚本的参数数组
<?phpvar_dump($argv);?>当使用这个命令执行:php script.php arg1 arg2 arg3
更多PHP相关技术文章,请访问PHP教程栏目进行学习!







