Simple Quick Array Question
Posted: Sat Sep 11, 2004 5:55 am
Hi, I know I should know this but I haven’t used arrays in ages and can not find this solution in my books....
Simply, I have built an array as follows
I am trying to read the 'list' array and its keys back. I need to know that 3=50, 29=45 and 67=89.
I do not want to loop from 0 to 67. I only want to loop three times and retrieve the keys and data.
Could someone give an example on how I could do this?
Simply, I have built an array as follows
Code: Select all
$list = array();
$listї3]="50"; $listї29]="45";$listї67]="89";I do not want to loop from 0 to 67. I only want to loop three times and retrieve the keys and data.
Could someone give an example on how I could do this?