Re: preg_match()

From: Date: Mon, 02 Dec 2002 18:32:52 +0000
Subject: Re: preg_match()
Groups: php.general 
Request: Send a blank email to php-general+get-126744@lists.php.net to get a copy of this message
Well, if you truly mean split by row, if $emaillist contains them all: $earray = explode("\n",$emaillist); Then, if you wanted each email address in it's own subarray position: for($counter = 0; $counter < count($earray); $counter++) { $earray[$counter] = explode(";",$earray[$counter]); } That would give you: $earray[0][0] = "bob@aol.com"; $earray[0][1] = "bob2@aol.com"; $earray[0][2] = "bob3@aol.com"; $earray[1][0] = "steve@aol.com"; Etc, assuming you had 3 email's per line. -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#126744) next »