Is it possible, to get matched string part in sql statement, which has many like statements.
SELECT fieldname
FROM table
WHERE content LIKE '%$val_1%'
OR content LIKE '%$val_2%'
OR content LIKE '%$val_3%'
.
.
.
OR content LIKE '%$val_n%'
i.e i need to get all that values($val_1, or(and) $val_2 ...), which matched in content.
example
if my content is the following
content = 'this is my testing text'
and i have the following values, to check in like statements
$val_1 = 'thi';
$val_2 = 'esting';
$val_3 = 'other value, which not in my content';
I need to get the matched partts, i.e "thi" and "esting", because they are matched in my content.
$val_*was matched incontent?