Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

json get/post request in php

<?php
  $json = '{
      "title": "PHP",
      "site": "GeeksforGeeks"
  }';
  $data = json_decode($json);
  echo $data->title;
  echo "
";
  echo $data->site;
?>
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #json #request #php
ADD COMMENT
Topic
Name
3+6 =