JSON in PHP Example

JSON in PHP Example

PHP Program Sample:

<?php
$place = 'Arcot';
$pincode = '632503';
$place_pincode = array($place=>$pincode);
$json_value = json_encode ($place_pincode);
echo $json_value;
?>

Output:
{“Arcot”:”632503″}

696 total views, 1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *