How to reset PHP array to its default keys and values

west99999

New Member
I have PHP array:\[code\]$curl_options = array( CURLOPT_PORT => 80, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30);\[/code\]Then I add new elements and change some values:\[code\]$curl_options[CURLOPT_USERAGENT] = "Opera/9.02 (Windows NT 5.1; U; en)";$curl_options[CURLOPT_PORT] = 90;\[/code\]After this changes array becomes to \[code\]$curl_options = array( CURLOPT_PORT => 90, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30, CURLOPT_USERAGENT => Opera/9.02 (Windows NT 5.1; U; en));\[/code\]How can I reset array back to it defaults? To\[code\]$curl_options = array( CURLOPT_PORT => 80, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 30);\[/code\]Thanks.
 
Back
Top