I already known how to print out an associative array but how about assigning variables into the associative array? For inctance in database
Member Sponsor
1. 001 none
2. 002 001
3. 003 001
4. 004 002
5. 005 002
select member from table where sponsor = 001
then how can i assign this data into an associative array
$array = array ($sponsor => array ($member));
thank you for your assistance.
(if this example is not convenient please use any example that is suitable as long as it is related to assigning variable into ass.array)