Switch to preg_replace
Docs and update the expression to use preg syntax (PCRE) instead of ereg syntax (POSIX) where there are differencesDocs (just as it says to do in the manual for ereg_replace
Docs).
More Related Contents:
- Deprecated: mysql_connect() [duplicate]
- How can I convert ereg expressions to preg in PHP?
- How to fix the session_register() deprecated issue?
- How to successfully rewrite old mysql-php code with deprecated mysql_* functions?
- How to use spl_autoload() instead of __autoload()
- PHP Error : Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` [duplicate]
- How can I replace the deprecated set_magic_quotes_runtime in php?
- Why is mime_content_type() deprecated in PHP?
- PHP 7.4 deprecated get_magic_quotes_gpc function alternative
- What does PHP do with deprecated functions?
- Get url as www.abcd.com?curr=USD
- How to provide dynamic HTML in PHP?
- Pass a PHP string to a JavaScript variable (and escape newlines) [duplicate]
- The ultimate clean/secure function
- SET NAMES utf8 in MySQL?
- PHP reading shell_exec live output
- How to delete a line from the file with php?
- How to get the content-type of a file in PHP?
- PHP – Move a file into a different folder on the server
- Convert timestamp to readable date/time PHP
- displaying an image stored in a mysql blob
- Difference between php echo and return in terms of a jQuery ajax call [closed]
- File not uploading PHP
- How to save webpage as a image file using PHP?
- Crop whitespace from image in PHP
- SQL_CALC_FOUND_ROWS / FOUND_ROWS() does not work in PHP
- What does $k => $v in foreach($ex as $k=>$v) mean? [duplicate]
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Can a PHP function accept an unlimited number of parameters? [duplicate]
- PHPMailer error: SMTP -> ERROR: Failed to connect to server