In the very simplest way?  Just use a str_replace on the quotes:

$words=explode(" ", str_replace('"', '', strtolower($keywords)));

--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org

"Vernon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm having trouble returning the value less the quatation marks from the
> following:
>
>      $words=explode(" ", strtolower($keywords));
>
> I'm having the words from the form field put into an array. Problem is if
> the field contains something like
>
>      trackworker AND "New York"
>
> It seperates the words into the array as follows:
>
>    Array ( [0] => trackworker [1] => "new [2] => york" )
>
> Therefore not finding the words "new york" because they don't exist like
> that but rather without the quotaions. Question is how do I remove the
> quatation marks so it returns?
>
>    Array ( [0] => trackworker [1] => new [2] => york )
>
> Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to