OK, here is the method,
I have an array called post
this one has these keys: id,title,description
i'm storing all my ids,titles and descriptions in those keys.
Now i work on my post titles,
i have another array called keywords
Thanks to @Dagon, i could check my keywords on my title array , so if the title contains some of these keywords i return those titles.
now my question is :
my returned titles that only contained some of the keywords i want to get its id and its description
EDIT
for example ,
$lang_name = array("php","html");
$languages = array(
"id" => array("1","2","3"),
"lang"=>array("php","html","css"),
"version"=>array("PHP5","HTML5","CSS3")
);
foreach($lang_name as $lang){
if(in_array($lang,$languages['lang'])){
echo $lang."<br>";
// now i want to get the version and id of the languages for php and html values
}
}