Function eregi_replace() is deprecated in php - How to fix
Warning - This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.
Example: How to fix.
<?php
function tep_sanitize_string($string)
{
$string = eregi_replace(' +', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}
?>
function tep_sanitize_string($string)
{
$string = eregi_replace(' +', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}
?>
how to solve it?
Alternatives to this function eregi_replace() use: preg_replace() (with the i (PCRE_CASELESS) modifier)
Example: use preg_replace()
<?php
function tep_sanitize_string($string)
{
$string = preg_replace(' +', ' ', trim($string));
return preg_replace("/[<>]/", '_', $string);
}
?>
eregi_replace
Function eregi_replace() is deprecated in php - How to fix - php tutorial
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.