title: How do you remove a value that has an empty key from an associative array in PHP?
body: <p>I have a key that appears to be an empty string, however using <code>unset($array[""]);</code> does not remove the key/value pair. I don't see another function that does what I want, so I'm guessing it's more complicated that just calling a function.</p>
  
  <p>The line for the element on a print_r is <code>[] =&gt; 1</code>, which indicates to me that the key is the empty string.</p>
  
  <p>Using var_export, the element is listed as <code>'' =&gt; 1</code>.</p>
  
  <p>Using var_dump, the element is listed as <code>[""]=&gt;int(1)</code>.</p>
  
  <p>So far, I have tried all of the suggested methods of removal, but none have removed the element. I have tried <code>unset($array[""]);</code>, <code>unset($array['']);</code>, and <code>unset($array[null]);</code> with no luck.</p>