PHP/String/String Contains
Версия от 13:37, 26 мая 2010; (обсуждение)
String contains string
<source lang="html4strict">
<? $text = "PHP rules!"; if (ereg("PHP", $text)) {
echo( "$text contains the string "PHP"." );
} else {
echo( "$text does not contain the string "PHP"." );
} ?>
</source>