Hi all, hope you are having a better day than I am...
I am trying to write the results of a search of text using preg_match_all to a database...
First thing I need to do is write the results of the search to an array (which preg_match_all does)... It writes the results to a two dimensional array... WHICH IS GOOD...
However I am struggling to return the results in that array (ie the returned values, not the keys), but with zero luck - WHICH IS BAD...
below is the code that I am using, but does not seem to want to work...
preg_match_all('/(?!\b)(#\w+\b)/',$tDescrip,$foundKeywords);
foreach($foundKeywords as $value)
{
echo "Keyword:$value?\n";
}
Any ideas as to what I am doing wrong?
Thanks in advance...