RE: [PHP] explode() - quick question

From: Date: Thu, 14 Mar 2002 03:58:27 +0000
Subject: RE: [PHP] explode() - quick question
Groups: php.general 
Request: Send a blank email to php-general+get-88428@lists.php.net to get a copy of this message
just use $string{0} and $string{1} , etc. note the type of brackets -----Original Message----- From: Phil Schwarzmann [mailto:pschwar@jhmi.edu] Sent: Thursday, March 14, 2002 2:06 PM To: php-general@lists.php.net Subject: [PHP] explode() - quick question Im trying to take this string, "hello", and explode it into an array with each cell in the array containing one character. $array[0] = 'h' $array[1] = 'e' etc.. How does this work? When is use... $character = explode('', $string) or.... $character = explode($string) ...it doesn't seem to work. ANY HELP!?!? THANKS!!

« previous php.general (#88428) next »