Re: string to array??

From: Date: Thu, 17 Jan 2002 17:06:35 +0000
Subject: Re: string to array??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80937@lists.php.net to get a copy of this message
$TF_string = "Starscream, Megatron, Jetfire, Optimus Prime"; $TF_array = explode(", ", $TF_string); print_r($TF_array); (note the space after the comma in the first argument to "explode()", this necessary to avoid the space being include in each element of the array) Hope that helps, Erik On Thursday, January 17, 2002, at 05:41 AM, Sandeep Murphy wrote:
hi, can i convert a string to an array?? if so how shud the syntax read?? Thnx, sands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#80937) next »