I have got problem with this line (youtube) :

$s = preg_replace("/[youtube]([^\s'"<>]+?)[/youtube]/ie", 'handleyoutube("$1")', $s);


Because i'm in the mysqli and php7