I have following code:
// $postfields = array();
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
My $postfields
variable is an array of parameters. And i have a notice there is array to string conversion. It works tho.
I could use http_build_query()
function to nullify notice, however i use @path_to_file
to include post files. and http_build_query()
breaks file includes.
I'm wondering if there is more "proper" way to do this. Without generating a notice.