Hi jpadie,
yep,I took a look at the array_filter thingy and I couldn't find anything usefull at this moment.
I mean - I have to search into each array value for a matching keyword and if the match is present to output the entire block.
I used the code u've posted in my previous thread:
$pattern = '/'.$word1.'(.*?)'.$word2.'/imsx';
preg_match_all($pattern,file_get_contents($file), $matches);
echo "<pre>".print_r($matches,true).'</pre>';
well,this outputs an array like:
Array
(
[0] => Array
(
[0] => first string block like
[1] => second
[2] => third
probably I'm missing something here ... I've tried almost everything.