RE: [PHP] separated string by comas

From: Date: Mon, 22 Jul 2002 06:43:53 +0000
Subject: RE: [PHP] separated string by comas
Groups: php.general 
Request: Send a blank email to php-general+get-108832@lists.php.net to get a copy of this message
$string = str_replace(" ", ",", $string); -----Original Message----- From: rdkurth@starband.net [mailto:rdkurth@starband.net] Sent: Monday, July 22, 2002 4:57 PM To: php-general Subject: [PHP] separated string by comas I have a string that is separated by spaces like this $string="test test1 test2 test3"; how can I make the string so it is separated by comas like this $string="test,test1,test2,test3"; I know this is probably simple but I just can't figure it out -- Best regards, rdkurth mailto:rdkurth@starband.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#108832) next »