title: PHP Double Quotes In Array Key
body: <p>I know this is really bad practice, but it's already been put in place because it is an existing system. Anyways, I have a table that has an id and a description. What the code does is it creates an array from this table, but to make it easy to search, we made the description they key and the id the value. Now the issue is that the description contains double quotes, example 4"x6", and that is preventing the program from finding the id. Is there any special escape sequence that I can use to get around this issue?</p>
  
  <p>Here is an example of simplified code:</p>
  
  <pre><code>$my_ary = array('4"x6"'=&gt;22, 'test'=&gt;3);
  
  echo $my_ary['4"x6"']; // Does not work
  echo $my_ary['test']; // Works
  
  $quote_key = '4"x6"';
  echo $my_ary[$quote_key]; // Does not work
  </code></pre>
  
  <p>Hopefully with that example that will help out my explination. </p>
  
  <p>this is with version 5.2.6-3ubuntu4.2 of PHP</p>