note 112644 deleted from function.json-encode by crell

From: Date: Fri, 01 Jul 2022 19:17:59 +0000
Subject: note 112644 deleted from function.json-encode by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218828@lists.php.net to get a copy of this message
Note Submitter: CertaiN ---- <?php $fp = fopen('php://stdin', 'r'); $json = @json_encode(array('a' => 'foo', 'b' => $fp)); var_dump($json); ?> [PHP5.5 or after] bool(false) [PHP 5.4 or before] string(20) "{"a":"foo","b":null}"

« previous php.notes (#218828) next »