Re: comparisons

From: Date: Fri, 22 Mar 2002 13:46:50 +0000
Subject: Re: comparisons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89676@lists.php.net to get a copy of this message
> 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

« previous php.general (#89676) next »