<?php global $config; ?> <input type="hidden" id="config" value="<?=str_replace('"', '"', json_encode($config['client']))?>" />
info at phpclasses dot org