buidling a mutli dimentional array
Posted: Sun Dec 26, 2004 8:30 am
i want to build an array thats its data is :
name,id,tonn
the only 1 of the 3 values that can repeat on itself is the "tonn"
i can have data like :
how can i do this?
1 more thing : i dont know i advance the "tonn" ' i only get it at run time
ordered by tonn - so the array keys (based on the tonn???) must be build at run timme!
thnaks in advance
peleg
name,id,tonn
the only 1 of the 3 values that can repeat on itself is the "tonn"
i can have data like :
and i want the array build based on the tonn as the main index of the array!!!name id tonn
sd 3 2
cd 1 2
we 443 55
qa 2311 2
how can i do this?
1 more thing : i dont know i advance the "tonn" ' i only get it at run time
ordered by tonn - so the array keys (based on the tonn???) must be build at run timme!
thnaks in advance
peleg