Using below PHP snippet you can create JSON data. This will come handy when you are creating web services for mobile apps.
1
2
|
$json_data = array ('id'=>1,'name'=>"Mohit");
echo json_encode($json_data);
|
1
2
|
$json_data = array ('id'=>1,'name'=>"Mohit");
echo json_encode($json_data);
|
Hello Friends! I am Ramana a part time blogger from Hyderabad.
0 comments:
Post a Comment