[PHP] split and array logic

2001-05-01 Thread Matthew Luchak
I can't quite get the logic to create my own associative arrays: if: $stuff[0]=165.33.114.63 anonymous Mozilla/4.0 $stuff[1]=213.35.354.93 anonymous Mozilla/4.0 how do I end up with: $stuff[0][user]=165.33.114.63 $stuff[0][browser]=Mozilla/4.0

Re: [PHP] split and array logic

2001-05-01 Thread Gyozo Papp
I can't quite get the logic to create my own associative arrays: if: $stuff[0]=165.33.114.63 anonymous Mozilla/4.0 $stuff[1]=213.35.354.93 anonymous Mozilla/4.0 how do I end up with: $stuff[0][user]=165.33.114.63 $stuff[0][browser]=Mozilla/4.0 $stuff[1][user]=213.35.354.93