Array 2 string conversion while using CURLOPT_POSTFIELDS
<p>I have following code:</p>

<pre><code>// $postfields = array();
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
</code></pre>

<p>My <code>$postfields</code> variable is an array of parameters. And i have a notice there is array to string conversion. It works tho.</p>

<p>I could use <code>http_build_query()</code> function to nullify notice, however i use <code>@path_to_file</code> to include post files. and <code>http_build_query()</code> breaks file includes.</p>

<p>I'm wondering if there is more "proper" way to do this. Without generating a notice.</p>