Re: help with strings!

From: Date: Tue, 05 Sep 2000 19:47:38 +0000
Subject: Re: help with strings!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15364@lists.php.net to get a copy of this message
on 9/5/00 6:35 PM, Arjun Saha at arjun@che.iitb.ernet.in wrote: > Hey all, > I'm new to this list.... I've been trying to find a method to find > out if a string is within quotes or not.. basically trying to make a > search engine. > > Any help would be absolutely fantastic. > > TIA, > Arjun. > I'm not exactly sure what you're trying to ask. If you looking to see if a string is: "My String" vs My String you can try this: if (ereg("\"(.*)\"",$the_string)) /* string is between quotes */ else /* string is not between quotes */ Is this what you mean? The Captain

« previous php.general (#15364) next »