title: Hot to read the JSON url in php using CURL?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2001897/get-the-value-of-an-url-response-with-curl">get the value of an url response with curl</a>  </p>
  </blockquote>
  
  
  
  <p>I have the json url as follow</p>
  
  <pre><code>www.example.com/hello.php?action=get&amp;id=18&amp;format=json
  </code></pre>
  
  <p>which returns output as <code>{"id":18,"name":"Dharma"}</code>.</p>
  
  <p>How can I get the name property by using php curl function?</p>
  
  <p>I want output as "Dharma".</p>