View Single Post
Old 07-12-2005, 02:10 PM   #3 (permalink)
ratbastid
Darth Papa
 
ratbastid's Avatar
 
Location: Yonder
I believe you're looking for the explode() function. It splits a string into an array on a specified string.

Code:
$data = "one two three four"
$result = array();
$result = explode(" ", $data);
The array $result now has the folowing values:

$result[0] = "one";
$result[1] = "two";
$result[2] = "three";
$result[3] = "four";
ratbastid is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43