PHP/String/String Contains
String contains string
<?
$text = "PHP rules!";
if (ereg("PHP", $text)) {
echo( "$text contains the string "PHP"." );
} else {
echo( "$text does not contain the string "PHP"." );
}
?>
<?
$text = "PHP rules!";
if (ereg("PHP", $text)) {
echo( "$text contains the string "PHP"." );
} else {
echo( "$text does not contain the string "PHP"." );
}
?>