Answers for "preg_replace('/<!--(.|\s)*?-->/'"

PHP
0

preg_replace examples

$result = preg_replace('/abc/', 'def', $string);   # Replace all 'abc' with 'def'
$result = preg_replace('/abc/i', 'def', $string);  # Replace with case insensitive matching
$result = preg_replace('/s+/', '', $string);      # Strip all whitespaces
Posted by: Guest on March-09-2021
0

preg_replace examples

# Strip HTML tag
$result = preg_replace('#<span id="15">.*</span>#m', '', $string);
Posted by: Guest on March-09-2021

Code answers related to "preg_replace('/<!--(.|\s)*?-->/'"

Browse Popular Code Answers by Language