curl_setopt_array
Opis
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().
Parametry
ch
Uchwyt cURL zwrócony przez curl_init().
options
An array specifying which options to set and their values. The keys should be valid curl_setopt() constants or their integer equivalents.
Zwracane wartości
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.
Przykłady
Prior to PHP 5.1.4 you can simulate this function with:
Poprzedni | Spis treści | Następny |
curl_multi_select | Początek rozdziału |