title: How to reset PHP array to its default keys and values
body: <p>I have PHP array:</p>
  
  <pre><code>$curl_options = array(
      CURLOPT_PORT =&gt; 80,
      CURLOPT_CONNECTTIMEOUT =&gt; 10,
      CURLOPT_TIMEOUT =&gt; 30
  );
  </code></pre>
  
  <p>Then I add new elements and change some values:</p>
  
  <pre><code>$curl_options[CURLOPT_USERAGENT] = "Opera/9.02 (Windows NT 5.1; U; en)";
  
  $curl_options[CURLOPT_PORT] = 90;
  </code></pre>
  
  <p>After this changes array becomes to </p>
  
  <pre><code>$curl_options = array(
      CURLOPT_PORT =&gt; 90,
      CURLOPT_CONNECTTIMEOUT =&gt; 10,
      CURLOPT_TIMEOUT =&gt; 30,
      CURLOPT_USERAGENT =&gt; Opera/9.02 (Windows NT 5.1; U; en)
  );
  </code></pre>
  
  <p>How can I reset array back to it defaults? To</p>
  
  <pre><code>$curl_options = array(
      CURLOPT_PORT =&gt; 80,
      CURLOPT_CONNECTTIMEOUT =&gt; 10,
      CURLOPT_TIMEOUT =&gt; 30
  );
  </code></pre>
  
  <p>Thanks.</p>