Re: [PHP-DB] PHP Getting Variables from String From: Jason Wong (phplist <email protected>)
Date: 10/30/01

On Tuesday 30 October 2001 12:41 pm, Anthony C. Yandell wrote:
> I need help. Say I have a string coming from a page via a form ....
> $search_var. I need it split up into multiple variables...
>
> e.g....
>
> $string="These are some words"
>
> I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some
>
> I'm doing this for a search script. Want it to take the input, and
> search a mysql db for each of the keywords... Please e-mail a
> response to tone405 <email protected>

Checkout the explode() function.

-- 
Jason Wong
Gremlins Associates
www.gremlins.com.hk

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>