I want to delete the element containing the value 2000 Outside (for example, Eg1,Eg2 and Eg3), This might help: each value loop can have many values.
After remove "2000 Outside" only top record data will display. Eg1 2000 Monday, Eg3 2000 Friday.
I'm looking for the simplest function to perform this task please.
Eg1
Postcode Day
2000 Monday
2000 Outside
2000 Friday
2000 Sunday
2000 wednesday
Eg2
Postcode Day
2000 Outside
2000 Monday
2000 Friday
2000 Sunday
2000 wednesday
Eg3
Postcode Day
2000 Outside
2000 Outside
2000 Friday
2000 Sunday
2000 wednesday
foreach($Items as $item)
{
echo $item->PostCode. " ".$item->Day.'<br/>'."\n";
}