I'm trying to remove everything from an array except DTSTART & DTEND
So I'm trying to convert this:
Array
(
[0] => Array
(
[DTEND] => 20130417
[DTSTART] => 20130403
[UID] => cerog90g7-fcqls51z0wteew@airbnb.com
[DESCRIPTION] => CHECKIN: 04/08/2012
CHECKOUT: 04/17/2012
NIGHTS: 14
PHO
[NE] => +1 504 914 0591
EMAIL: testhere@email.com
PROPERTY: Breathtaking views over the lake
[SUMMARY] => Name here (ED5ASC)
[LOCATION] => Breathtaking views over the lake
)
[1] => Array
(
[DTEND] => 20131231
[DTSTART] => 20131226
[UID] => rtyrtyg90g7--t520wkwqv2i8@airbnb.com
[DESCRIPTION] => CHECKIN: 12/26/2013
CHECKOUT: 12/31/2013
NIGHTS: 5
PHON
[E] => +44 7843 387767
EMAIL: floraking@hotmail.com
PROPERTY: Breathtaking views over the lake
[SUMMARY] => Name here (JrtyKW9)
[LOCATION] => Breathtaking views over the lake
)
[2] => Array
(
[DTEND] => 20121123
[DTSTART] => 20121117
[UID] => ntry5rxts23--qe9rtyrywi0@airbnb.com
[SUMMARY] => Not available
)
)
to look like this:
Array
(
[0] => Array
(
[DTEND] => 20130417
[DTSTART] => 20130403
)
[1] => Array
(
[DTEND] => 20131231
[DTSTART] => 20131226
)
)
[2] => Array
(
[DTEND] => 20121123
[DTSTART] => 20121117
)
)
I've searched for loads of options but I need to be able to just select these two elements and discard the rest, I will be using it with different arrays that have different values so can't just specify the elements to remove as they will vary.