View Single Post
Old 12-15-2009, 09:58 PM  
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
I just learned over the last hour how to split the fields. Now I have array [0] to array [19] outputted with the following script:

Code:
print_r (explode(",\"",$str));
print_r (explode("\"",$str));
echo "<br />";
I now need to know how to declare say array[9] as $peanuts and echo it. From there I can figure out how to put it in the database. Tried code below but didn't work

Code:
print_r (explode(",\"",$str));
print_r (explode("\"",$str));
echo "<br />";

$peanuts = $array[9];
echo $peanuts;
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote