foreach($devices as $device){
if((strpos($device->Name,'gateway02') !== false)&& (strpos($device->Name,'CallsActive') !== false)){
echo $device->Name . " : " . $device->Value;
}
}
use strpos to check if the name contains those values, if so, do something with it.
4
solved Echoing Values from a multidimensional array [closed]