ArraySearch
Posted: Fri Sep 16, 2011 5:11 pm
I have two arrays:
I need to make a loop that will merge this arrays, and then get the requested data(instrument ID, name, model and information about stores where to get them) based on user input (instrument name). I know I should first create one more array that would help merging of first two arrays. This third array should held information about ID's(both instrument's and store's). But I'am not sure how to do this. I would appreciate any help.
Code: Select all
$instrumenti = array( array( ID => 'value',
Name => 'value',
Model => 'value '
),
array( ID => 'value',
Name => 'value',
Model => ' value'
),
array(ID => 'value',
Name => 'value',
Model => 'value '
),
ID => 'value',
Name => 'value',
Model => 'value '
),
)
);
$stores= array( array( ID => 'value',
Name => 'value',
Adress => 'value '
),
array( ID => 'value',
Name => 'value',
Adress => ' value'
),
array(ID => 'value',
Name => 'value',
Adress => 'value '
),
ID => 'value',
Name => 'value',
Adress => 'value '
),
)
);