title: How to deal with unknown PHP cURL result
body: <p>In case of not sure about the incoming data format and content of curl setup, what is the way to show or deal with the result in any format.</p>
  
  <p>as example </p>
  
  <pre><code>    $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
      $result = curl_exec($ch);
  </code></pre>