RE: [PHP] string to array?

From: Date: Thu, 13 Jun 2002 22:36:43 +0000
Subject: RE: [PHP] string to array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102096@lists.php.net to get a copy of this message
> I have a string something like "10.2.3" > I want to be able to use the "." as a delimiter to reference > the elements (10, 2, and 3). > My thought was to create an array, using "." as the > delimiter. Is there a function that will create an array out > of a string, using a delimiter you specify? $my_array = explode(".", "10.2.3"); -- ---------------------------------------------------------------------- Outback Queensland Internet ************************ Longreach ** New Web Site Online * Queensland ************************ Australia W: www.outbackqld.net.au

« previous php.general (#102096) next »