php - Filtering through SimpleXML -
i have parsed xml file , styled desired results. trying filter alerts based on vairbles created simplexml nodes , appears stuck. in case trying display tornado warning, severe thunderstorm warning, flash flood warning , flood warning event node event variable create , associated information. while want display events matching title trying order well.
what best way have put point? here full code parsing test xml 2 entries testing should not displayed @ end.
https://www.tehplayground.com/sta3al7tihluvzhb
now if before style outputted variables works unable sort this.
elseif ($event == 'tornado warning' || $event == 'severe thunderstorm warning' || $event == 'flash flood warning')
Comments
Post a Comment