'$ ch'和'-F'在$ ch中代表什么= curl_init();

use*_*948 2 php curl

我在php中使用cURL。注意到每次启动卷发盒时,人们总是放吗?

$ch=curl_init(); 
Run Code Online (Sandbox Code Playgroud)

“ $ ch”是什么意思?

curl -F template_invoke_name='sendcloud_template' 
Run Code Online (Sandbox Code Playgroud)

“ -F”是什么意思?

我在Google周围搜索没有答案,希望能在这里找到答案。谢谢!

Men*_*ual 6

调用时,curl_init()它将初始化一个新会话,并返回一个cURL句柄。$ch是用于存储句柄的变量(我猜在这种情况下,它$ch是的简化版本curl handle)。诸如此类的功能curl_setopt要求将卷毛手柄作为参数传递。

参考:http : //se2.php.net/manual/en/function.curl-init.php