Hi all,
If I have the following array:
$Unmanaged = array(
array('name' => 'SD2005', 'speed' => '1000', 'size' => 'desk', 'uplink' => 'no'),
array('name' => 'SD2008', 'speed' => '1000', 'size' => 'desk', 'uplink' => 'no'),
array('name' => 'SR2016', 'speed' => '1000', 'size' => 'rack', 'uplink' => 'no'),
array('name' => 'SR2024', 'speed' => '1000', 'size' => 'rack', 'uplink' => 'no'),
array('name' => 'SR2024C', 'speed' => '1000', 'size' => 'rack', 'uplink' => 'no'),
array('name' => 'SD205', 'speed' => '100', 'size' => 'desk', 'uplink' => 'no'),
array('name' => 'SD208', 'speed' => '100', 'size' => 'desk', 'uplink' => 'no'),
array('name' => 'SD216', 'speed' => '100', 'size' => 'desk', 'uplink' => 'no'),
array('name' => 'SR224G', 'speed' => '100', 'size' => 'rack', 'uplink' => 'yes'),
array('name' => 'SR216', 'speed' => '100', 'size' => 'rack', 'uplink' => 'no'),
array('name' => 'SR224', 'speed' => '100', 'size' => 'rack', 'uplink' => 'no'),
array('name' => 'SR224R', 'speed' => '100', 'size' => 'rack', 'uplink' => 'no')
);
how would I cycle through all entries returning all the entries that meet a certain criteria for example: all switches that are speed:100, size:desk and uplink:no ?
Please help.
Thanks, Ben