> if (ereg("john",$jeff) ) { } > ok > or: > > if( strstr( $jeff, "john") ) { } > ok > or: > > if( strpos( $jeff, "john") ) { } error
if (strpos($jeff, "john") !== FALSE) Best regards, Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php