php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: function.httprequest-addcookies.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Add cookies				  				 				 				 The HttpRequest				 HttpRequest::addHeaders				 The HttpRequest				 PHP Manual								 				  HttpRequest::addCookies				  (PECL pecl_http:0.10.0-1.5.5)HttpRequest::addCookies — Add cookies								 				 				  Description				  				   public				   bool HttpRequest::addCookies				    ( array $cookies				   )												  				   Add custom cookies.				  				  Note: The request option encodecookies controls				   whether the cookie values should be urlencode()d.				  Note: Affects any request method.								 								 				  Parameters				  				   								    								     cookies												     								      				       an associative array containing any cookie name/value pairs to add				      				     								    								   								  				 								 				  Return Values				  				   Returns TRUE on success or FALSE on failure.				  				 												 												 												 				  Examples				  				   				    Example #1 A HttpRequest::addCookies() example				    								<?php$r = new HttpRequest;$r->addCookies(    array(        "cookie_name" => "cookie value",    ));?>												    								   				  				 												 				  See Also				  				   				    HttpRequest::setCookies()				   				  				 																				 The HttpRequest				 HttpRequest::addHeaders				 The HttpRequest				 PHP Manual											

相关资源