Actually I have made small programme in php using simple array and search name from array and my programe given below :
$n = array("Akki","Amesh","Akit","Baa","aaakk");
$hint = "";
$find = "ak";
if ($find !== "") {
    $find = strtolower($find);
    $lwn = strlen($find);
    foreach($n as $gt){     
        if(stristr($find, substr($gt,0,$lwn))){
            if($hint === ''){                   
                $hint .= $gt;
            }else{          
                $hint .= ",$gt";
            }
            }
    }
}
echo ($hint == "") ? "NNN" : $hint ;
My query how to check $hint got data are single & double and how to add comma after got name from array
Like I have searched name using word ak and i got two name Akki and Akit. and its perfect but i want to know how to add comma between that name.
And What does check this condition : ($hint === '')
tell me if anyone know my query.
 
     
     
     
    