Re: PHP Getting Variables from String

From: Date: Tue, 30 Oct 2001 05:01:12 +0000
Subject: Re: PHP Getting Variables from String
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13835@lists.php.net to get a copy of this message
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@hotmail.com Checkout the explode() function. -- Jason Wong Gremlins Associates www.gremlins.com.hk

« previous php.db (#13835) next »