Topic: Error in PHP - '=>' (T_DOUBLE_ARROW)
Hi all,
I would like to ask for help as I am not fully educated in IT development. I am using Wialon local and sending the requests via PHP.
I am trying to request the list of IDs (Search items by property). Unfortunately I am facing the following problem
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'
The source looks as follow:
$params - array("spec"(
"itemsType" => "avl_unit",
"propName" => "sys_id",
"propValueMask" => "*",
"sortType" => "sys_name"),
"force" => 1,
"flags" => 1,
"from" => 0,
"to" => 10000
);
echo $wialon_api->core_search_items(json_encode($params));
Can anyone help how to make this request / substitute the => for anything else?
Thanks in advance