Let’s suppose the code above produces the result above.

With the QUERY_STRING above, I like to produces my target below.

[b]target result[/b]






The trial code below doesn’t work correctly, but I hope it show what I want.

[b]trial code[/b]


$delimiterCount=strlen($string)-strlen(str_replace("&","",$string) );

$whileI = $delimiterCount+1; 

while($whileI > 0)
echo $whileString."<br>";



You already have a thread for which matches the context of your question