I need to delete the next word of the search string .. I have a search array, for example array ('aa', 'bb', 'Ă©');
This is my paragraph "Hello, this is a test paragraph aa 123 test bb 456".
In this paragraph, I need to remove 123 and 456.
$pattern = "/\bé\b/i"; $check_string = preg_match($pattern,'Hello, this is a test paragraph aa 123 test é 456');
How to get the next word? Please, help.
source share