PHP Manual
curl_setopt_array
Description
bool curl_setopt_array ( resource ch, array options )Sets multiple options for a cURL session. This function is useful for setting a large amount of cURL options without repetitively calling curl_setopt().
Parameters
chA cURL handle returned by curl_init().
optionsAn array specifying which options to set and their values. The keys should be valid curl_setopt() constants or their integer equivalents.
Return Values
Returns TRUE if all options were successfully set. If an option could
not be successfully set, FALSE is immediately returned, ignoring any
future options in the options array.
Examples
Prior to PHP 5.1.4 this function can be simulated with:
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




