ricky_vancouver Posted December 11, 2010 Share Posted December 11, 2010 I just was learning preg_match from the manual and i see that theres littile changes to eregi so what can preg_match do what eregi can not. <? $match="my little home"; if(preg_match("/little/",$match)) { echo "matched"; }else{ echo " no match"; } ?> <? $match="my little home"; if(eregi("little",$match)) { echo "matched"; }else{ echo " no match"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/221300-pregmatch-vs-eregi/ Share on other sites More sharing options...
requinix Posted December 11, 2010 Share Posted December 11, 2010 Survive. The ereg extension is deprecated and going away. The rest of the answer can be found here. Quote Link to comment https://forums.phpfreaks.com/topic/221300-pregmatch-vs-eregi/#findComment-1145673 Share on other sites More sharing options...
ricky_vancouver Posted December 13, 2010 Author Share Posted December 13, 2010 thanks Quote Link to comment https://forums.phpfreaks.com/topic/221300-pregmatch-vs-eregi/#findComment-1146496 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.