si ho risolto così

Codice PHP:
  $n=strlen($q);
  foreach (
$arr as $item) {
   if (
substr(strtolower($item), 0,$n) == $q) {
    
array_push($result, array("id"=>$item"label"=>$item." par: ".$vStato"value" => strip_tags($item)));
   }
  }