About 1,380,000 results
Open links in new tab
  1. php - How to use cURL to get jSON data and decode the data?

    you can also use $result = curl_exec($ch); return response()->json(json_decode($result));

  2. How to use cURL to Get JSON Data and Decode JSON Data in PHP

    Jul 26, 2024 · In this article, we are going to see how to use cURL to Get JSON data and Decode JSON data in PHP. cURL: It stands for Client URL. It is a command line tool for sending and …

  3. How to Use cURL to Get JSON Data and Decode JSON Data in PHP

    Feb 2, 2024 · This article introduces how to use cURL to get JSON data and decode JSON data in PHP. It includes curl_init() function, curl_setopt() function, curl_exec() function and …

  4. Receive JSON Data With PHP CURL (Simple Example) - Code Boxx

    Nov 13, 2023 · To receive JSON data with PHP CURL, simply use the json_decode() function to turn the JSON string back into an object or array: $ch = curl_init(); curl_setopt($ch, …

  5. PHP cURL API calls with JSON data (GET - POST - PUT - DELETE)

    Jan 10, 2018 · Learn how to make PHP API calls using cURL! Everything you need to know about making correct cURL GET, POST, PUT, and DELETE requests in PHP.

  6. php - GET JSON data using CURL - Stack Overflow

    Sep 2, 2017 · I added the curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json')); line to make sure that we accept data in JSON format. $datasearch is an …

  7. PHP | How do I get JSON with Curl? - ReqBin

    Oct 20, 2023 · To get JSON with Curl, you need to make an HTTP GET request and provide the Accept: application/json request header. The application/json request header is passed to the …

  8. How to Pass JSON Data in a URL using CURL in PHP

    Apr 26, 2025 · In this article, we will see how to pass the JSON Data in a URL using CURL in PHP, along with understanding the different ways for passing the data in a URL through the …

  9. Retrieving JSON with Curl in PHP - usercomp.com

    Dec 13, 2023 · Learn how to retrieve JSON data using PHP and Curl. This article covers the basics of using Curl with PHP to make HTTP requests and parse JSON responses. It also …

  10. How to POST and Receive JSON Data using PHP cURL

    Apr 15, 2023 · In this tutorial, we will show you how to POST JSON data using PHP cURL and get JSON data in PHP. The following example makes an HTTP POST request and send the …

Refresh