note 100265 deleted from function.json-encode by cmb

From: Date: Sun, 04 Nov 2018 10:03:51 +0000
Subject: note 100265 deleted from function.json-encode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209604@lists.php.net to get a copy of this message
Note Submitter: matt dot parlane at gmail dot com ---- To save some space, at the risk of it being illegal JSON, strictly speaking: <?php $json = preg_replace('/"([a-zA-Z]+[a-zA-Z0-9]*)":/', '$1:', json_encode($whatever)); ?>

« previous php.notes (#209604) next »