I have problems with this code that I try to execute:
$buscar = array("necesito 01","necesito 02","necesito 03");
$resul = $buscar[mt_rand(0, count($buscar) - 1)];
$query = array(
"q" => "'+$resul+'",
"count" => 4,
"result_type" => "recent",
);
It does not give me the desired result what I need is that the variable $ results that is inside the array is random but it gives me an error.