Page 1 of 1

[SOLVED] Explode ... not exploding

Posted: Mon Oct 04, 2004 4:59 pm
by Steveo31
Really weird. I've used this function a million times and for some reason (I think I'm just numb to this project by now) it's not doing what I ask, or rather think I'm asking.

Code: Select all

//the URL looks like ...&searchterm=a+b+c
$terms = explode("+", $_GET['searchterm']);
print_r($terms);
By this, it should come back with

Code: Select all

Array (ї0] => a, ї1] => b, ї2] => c)
Or something to that effect, right?

Posted: Mon Oct 04, 2004 5:19 pm
by feyd
$_GET['searchterm'] will be 'a b c' there is no plus sign in it once url decoded..

Posted: Tue Oct 05, 2004 2:45 am
by Steveo31
Awesome. Thanks feyd.