Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the difference between ereg_replace() and eregi_replace()?

user-image
Question ajoutée par Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date de publication: 2016/01/27
Mohammad Ahmad Siddiqui
par Mohammad Ahmad Siddiqui , Sr.Software Engineer , GSPANN Technologies Inc

ereg_replace()->  Regular expression match replace case sensetive.  eregi_replace()-> Regular expression match replace case insensetive.

Julfkar  Moh Umar
par Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited

eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.

Aslesha Kadam
par Aslesha Kadam , Trainee Software Engineer , Logical DNA IT Sol. Pvt. Ltd.

ereg_replace() is case sensitive while eregi_replace() is not case sensitive.

Saleem Iqbal
par Saleem Iqbal , Technical Lead , IncisiveSoft pvt ltd

ereg_replace() is a case sensitive whereas eregi_replace() is not case sensitive.

 

e.g.

ereg_replace() - "Hello" - cannot treat as "hello" whereas

eregi_replace() - "Hello" - can be treat as "hello"

More Questions Like This