PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Basic Usage

Usage of Zend_Json involves using the two public static methods available: Zend_Json::encode() and Zend_Json::decode().

<?php
// Retrieve a value:
$phpNative Zend_Json::decode($encodedValue);

// Encode it to return to the client:
$json Zend_Json::encode($phpNative);

Zend Framework