I am having a problem with my preg_match_all()
function.
I have a string e.g.
$string = '<div id="header">Hello</div>'
preg_match_all('/'.preg_quote('<div id="header">').'(.*?)'.preg_quote('</end>').'/s', $string, $matches);
And I am looking to get the output Hello
.
But I only get this error:
preg_match_all(): Unknown modifier 'd' in C:\xampp\htdocs\classes\Functions.php on line 13