phprockers-logo

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

ereg_replace() is case sensitive like “phprockers” cannot be treated as “PhpRockers” and eregi_replace() is not case sensitive where “test” could be treated as “PhpRockers”.

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

0 comments:

Post a Comment