$i=1; //初始化i变量为1
while (1){ //循环逻辑
$i = abs($i); //第一次进来时是1 取绝对值后,还是1,但是第二次进来时,变成0,取绝对值后还是0,第三次进来时为-1,取绝对值后变为1 以此类推实现
var_dump($i); //输出当前值
usleep(500000); //延时0.5秒
$i--; //摸拟点击操作
}
FcgidInitialEnv PHPRC "/software/local/php52/lib/" #php.ini存放路径
>>> $_config = array('db_host' => 'localhost', 'db_user' => 'edu', 'db_pwd' => 'edu','db_name' => 'edu', 'db_lang' => 'utf8', 'db_prefix' => 'edu_', 'pconnect' => 0,'debug'=>1);
=> [
"db_host" => "localhost",
"db_user" => "edu",
"db_pwd" => "edu",
"db_name" => "edu",
"db_lang" => "utf8",
"db_prefix" => "edu_",
"pconnect" => 0,
"debug" => 1,
]
>>>
>>>
>>>
>>> $c = array('db_host' => 'localhost', 'db_user' => 'root', 'db_pwd' => 'xx','db_name' => 'pcdd2', 'db_lang' => 'utf8', 'db_prefix' => 'un_', 'pconnect' => 0,'debug'=>1)
=> [
"db_host" => "localhost",
"db_user" => "root",
"db_pwd" => "xx",
"db_name" => "xxx",
"db_lang" => "utf8",
"db_prefix" => "un_",
"pconnect" => 0,
"debug" => 1,
]
>>>
>>>
>>> array_merge($_config,$c)
=> [
"db_host" => "localhost",
"db_user" => "root",
"db_pwd" => "xx",
"db_name" => "xxx",
"db_lang" => "utf8",
"db_prefix" => "un_",
"pconnect" => 0,
"debug" => 1,
]
>>>
>>> $str = "This is some bold text.";
=> "This is some bold text."
>>> htmlspecialchars($str)
=> "This is some <b>bold</b> text."
>>> $str = "Who's John Adams?";
=> "Who's John Adams?"
>>> addslashes($str)
=> "Who's John Adams?"
>>> $a=array('name'=>'joinsen','age'=>32)
=> [
"name" => "joinsen",
"age" => 32,
]
>>> $b = serialize($a)
=> "a:2:{s:4:"name";s:7:"joinsen";s:3:"age";i:32;}"
>>> unserialize($b)
=> [
"name" => "joinsen",
"age" => 32,
]
>>>
LayBlog 强力驱动.
本站重建于2017年12月2日.
部分内容来自网络,如有问题,请联系站长处理.
友情链接:
珠海拖鞋仔博客 |
沉默是金