curl_setopt_array(PHP 5 >= 5.1.3) curl_setopt_array — Set multiple options for a cURL transfer Описание
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(). Список параметров
Возвращаемые значения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. Примеры
Пример #1 Initializing a new cURL session and fetching a web page
<?phpPrior to PHP 5.1.4 this function can be simulated with:
Пример #2 Our own implementation of curl_setopt_array()
<?php |
|
|
| © 2009 Тест скорости интернета | Boont.Ru |