title: PHP - Google chart API - QR code margins not working (Bug or feature? )
body: <p>I have a very simple function to generate QR code from the google chart API.</p>
  
  <pre><code> function o99_qr_code($size,$type,$url ) {
  
          $qr = '';
          $dsize = $size .'x'.$size; // doubleSize
  
           $qr = '&lt;img src="http://chart.apis.google.com/chart?cht=qr&amp;chs=' . $dsize . '&amp;chld=L|0&amp;chl=' . $url . '" width="' .$size .'" height="'.$size .'" alt="QR code" title="QR Code for your mobile device"/&gt;';
  
           switch ($type){
           case 'echo' :
           echo $qr;
           case 'return' :
           return $qr;
           }
      }
  </code></pre>
  
  <p>Now, this is working just fine except for the margin. </p>
  
  <p>(Apologize for not linking a live URL - my DEV is on localmachine)</p>
  
  <p>Whatver I try , I can not get the margin to go to 0.
  First I thought that for some reason, maybe the correction level L does not accept 0 margins  - I tired <code>&amp;chld=M|1</code> and <code>&amp;chld=L|0</code> and <code>&amp;chld=M|3</code> , and even tried to change the order of the parameters and put <code>&amp;chld=L|0</code> to the end of the string or omitting it completely .</p>
  
  <p>But for some reason, I always get the default margin of 4.</p>
  
  <p>Am I doing something wrong ??</p>
  
  <p><strong>EDIT I</strong>  - after request of URL :
  The generated URL is :</p>
  
  <pre><code>&lt;img src="http://chart.apis.google.com/chart?cht=qr&amp;chs=50x50&amp;chld=L|0&amp;chl=http://localhost/wp-sandbox/?p=6164" width="50" height="50" alt="QR code" title="QR code for your phone"/&gt;
  </code></pre>
  
  <p><strong>EDIT II</strong></p>
  
  <p>Check out this fiddle <a href="http://jsfiddle.net/obmerk99/rsjcM/" rel="noreferrer">http://jsfiddle.net/obmerk99/rsjcM/</a></p>
  
  <p>it demonstrate the problem .  </p>