RE: [PHP] comparisons

From: Date: Fri, 22 Mar 2002 13:41:46 +0000
Subject: RE: [PHP] comparisons
Groups: php.general 
Request: Send a blank email to php-general+get-89673@lists.php.net to get a copy of this message
if (ereg("john",$jeff) ) { } or: if( strstr( $jeff, "john") ) { } or: if( strpos( $jeff, "john") ) { } -----Original Message----- From: Warwick Berg [mailto:support@thedantegroup.com] Sent: Friday, March 22, 2002 6:55 AM To: php-general@lists.php.net Subject: [PHP] comparisons Hi Just learning php from the bottom. Can someone help with syntax please? Want to know about using ifs : If the string value "john" is present in the variable "jeff" then do, etc, etc. How do we see if a value is present in a string? Thanks Warwick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#89673) next »