title: Remove quotes from start and end of string in PHP
body: <p>I have strings like these:</p>
  
  <pre class="lang-none prettyprint-override"><code>"my value1" =&gt; my value1
  "my Value2" =&gt; my Value2
  myvalue3 =&gt; myvalue3 
  </code></pre>
  
  <p>I need to get rid of <code>"</code> (double-quotes) in end and start, if these exist, but if there is this kind of character inside String then it should be left there. Example:</p>
  
  <pre class="lang-none prettyprint-override"><code>"my " value1" =&gt; my " value1
  </code></pre>
  
  <p>How can I do this in PHP - is there function for this or do I have to code it myself?</p>