How to encode the JSON in PHP

$age = array("test"=>33, "test1"=>22, "test2"=>55);

echo json_encode($age);

//result {“test”:33,”test1″:22,”test2″:55}

How to encode the JSON in PHPexpoundsofttechsolution