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
> $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
2 matches
Mail list logo