Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

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
8 views



Related Hot Questions



Government Jobs Opening


...