Re: implode()?

From: Date: Tue, 26 Nov 2002 05:35:44 +0000
Subject: Re: implode()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126048@lists.php.net to get a copy of this message
Ok, figures I would be looking for something else and find the solution. urlencode(). Thanks for the reply Rasmus. :-) Jami ----- Original Message ----- From: "Jami" <jami@jamisniche.com> To: "PHP General" <php-general@lists.php.net> Sent: Monday, November 25, 2002 11:26 PM Subject: [PHP] implode()? I need help once more. I have a variable that is a string with spaces. What I need to do is put a "+" sign in the spaces so that the string will print like "This+is+a+string." I have tried using implode, but I get this error: Warning: Bad arguments to implode() The code I am using is as follows: $prod = implode("+", $_POST['product']); Is this the correct thing to use, or is there another way to change the string? Thanks. Jami

« previous php.general (#126048) next »