Jump to content

pregmatch-vs eregi


ricky_vancouver

Recommended Posts

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";

 

}

 

 

?>

Link to comment
https://forums.phpfreaks.com/topic/221300-pregmatch-vs-eregi/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.