Zend 200-550 Question Answer
Given a PHP value, which sample shows how to convert the value to JSON?
$string = json_encode($value);
$string = Json::encode($value);
$json = new Json($value); $string = $json->__toString();
$value = (object) $value; $string = $value->__toJson();
TESTED 11 Jul 2025
Copyright © 2014-2025 ACE4Sure. All Rights Reserved