RE: [PHP] Explode a string

From: Date: Wed, 12 Nov 2003 17:18:01 +0000
Subject: RE: [PHP] Explode a string
Groups: php.general 
Request: Send a blank email to php-general+get-169313@lists.php.net to get a copy of this message
[snip] Any ideas how to do this, I have a string 734088+3+734132+9+734138+80+781007+1+ I need to place the string into a multi-array like so array[0][0] = 734088 array[0][1] = 3 etc... Now ive tried everything i know any ideas? [/snip] start with explode $arrString = explode("+", $stringYouAreWorkingWith); Then loop through it, placing the pairs into two-dimensional array you mention above

« previous php.general (#169313) next »