Home of web learners

www.webn3rd.com

PHP has function to manipulate json data

lets check with an example:

<?php
$data 
= array("name"=>"Arif""ID"=>37);

$jsonencodeddata=json_encode($data);
echo 
$jsonencodeddata;
?>

output:

{"name":"Arif","ID":37}

So,here you see that php array data goes to a format or style of json,so anybody can now use this data anywhere which can work with json format data

webn3rd.com

About webn3rd