Organizational Research By

Surprising Reserch Topic

function ereg replace is deprecated how to clear this bug


function ereg replace is deprecated how to clear this bug  using -'php,deprecated,ereg'

I have written following PHP code:

$input="menu=1&type=0&";

print $input."<hr>".ereg_replace('/&/', ':::', $input);


After running above code, it gives following warning,


  Deprecated: Function ereg_replace() is deprecated


How can I resolve this warning.
    

asked Sep 14, 2015 by DewayneEEYsk
0 votes
9 views



Related Hot Questions

3 Answers

0 votes
NULL
answered Sep 14, 2015 by ClaudiaWelda
0 votes
NULL
answered Sep 14, 2015 by LolTolmie
0 votes
NULL
answered Sep 14, 2015 by ZitaDechaine

...