Re: Checking for plus signs?

From: Date: Fri, 08 Feb 2002 01:53:47 +0000
Subject: Re: Checking for plus signs?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-83949@lists.php.net to get a copy of this message
Actually, all you need is this: if(eregi("\+",$variable)) You only need to escape the + sign once. Tyler ----- Original Message ----- From: "Jim Lucas [php]" <jimphp@bend.com> To: "Leif K-Brooks" <eurleif@buyer-brokerage.com>; <php-general@lists.php.net> Sent: Thursday, February 07, 2002 7:39 PM Subject: Re: [PHP] Checking for plus signs? > try this > > if(eregi("/\+/",$variable)) > > Jim Lucas > ----- Original Message ----- > From: "Leif K-Brooks" <eurleif@buyer-brokerage.com> > To: <php-general@lists.php.net> > Sent: Thursday, February 07, 2002 5:40 PM > Subject: [PHP] Checking for plus signs? > > > > I'm trying "if(eregi("+",$variable)){", but it gives me an error. > > What do > I > > do? > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#83949) next »