[PHP] Re: [PHP-DB] PHP Getting Variables from String

2001-10-29 Thread brendan
Use the eval function $string="word1 word2 word3 word4); $string_array=explode(" ",$string); for ($x=0;$x>$string="These are some words" >> >>I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some >> > > $search_entities = explode(" ", $string); > > if (count($search_en

[PHP] Re: [PHP-DB] PHP Getting Variables from String

2001-10-29 Thread speedboy
> $string="These are some words" > > I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some $search_entities = explode(" ", $string); if (count($search_entities) > 0) { $criteria = ""; for ($i = 0; $i < count($search_entities); $i++) { if ($i == (c