I have a array with about 300 indexes and each index has about 8 "sub-indexes"(?). So it is a large(ish) array. I am working on converting my code to oop style and one of my classes(colors) will need this array passed as an argument. So my question is simple....if I create 100 color classes and pass each the array I am not creating 100 separate arrays correct just 100 pointers?
$colors['Apricot'] = array(250,180,160,3341,328,826,194,3332,0);
$colors['Apricot, Light'] = array(255,230,225,3824,8,833,2605,-1,1);
$x=new color();
$y=new color();
$z=new color();
$x->doSomething($colors);
$y->doSomething($colors);
$z->doSomething($colors);
Thee is still only one copy of the array, not three?
Thank you, Todd