RE: [PHP] Parsing a string

From: Date: Sat, 24 Feb 2001 06:16:43 +0000
Subject: RE: [PHP] Parsing a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41458@lists.php.net to get a copy of this message
Oh, yeah... my favorite: explode()! $var = '1,2,3,4,5,6,7,8,9,10'; $var_array = explode(',',$var); /* will become: $var_array[0] = '1'; $var_array[1] = '2'; $var_array[2] = '3'; $var_array[3] = '4'; ... and so on */ as you notice the array starts from 0 Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Todd Cary [mailto:todd@aristesoftware.com] Sent: Friday, February 23, 2001 11:41 PM To: php-general@lists.php.net Subject: [PHP] Parsing a string I have a comma delimited string that I need to parse into an array. Is there a PHP function that will do that ? Many thanks.......... Todd -- Todd Cary Ariste Software todd@aristesoftware.com -- 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 (#41458) next »