546) $chs = 546; $chs = $chs .'x'. $chs; $chld = strtoupper($chld); switch ($chld) { case 'L': case 'M': case 'Q': case 'H': break; default: $chld = 'L'; break; } $chld = $chld .'|'. $margin; $url = 'http://chart.apis.google.com/chart?chs='.$chs.'&cht=qr&chl='.$chl.'&choe='.$choe.'&chld='.$chld; return $url; }