I have a String with some specific abbreviations. The String can contain one, more or no abbreviation. Then I have an Array with the abbreviation as elements.
I'm searching for a solution to give the matched abbreviation in a new array back.
For example:
$abbreviation = array('HSGE', 'DFVC');
$string = 'This is a abbreviation HSGE and here is the other DFVC";
The output should be:
$output = ([0] => HSGE [1] => DFVC);
Maybe it's easy but I am new with this.
'This is a abbreviation HSGE and here is the other DFVC, another DFVC one and one more HSGE'?mysql?