Hi all i have an array shown below
Array
(
[0] => http://api.tweetmeme.com/imagebutton.gif?url=http://mashable.com/2010/09/25/trailmeme/
[1] => http://cdn.mashable.com/wp-content/plugins/wp-digg-this/i/gbuzz-feed.png
[2] => http://mashable.com/wp-content/plugins/wp-digg-this/i/fb.jpg
[3] => http://mashable.com/wp-content/plugins/wp-digg-this/i/diggme.png
[4] => http://ec.mashable.com/wp-content/uploads/2009/01/bizspark2.gif
[5] => http://cdn.mashable.com/wp-content/uploads/2010/09/web.png
[6] => http://mashable.com/wp-content/uploads/2010/09/Screen-shot-2010-09-24-at-10.51.26-PM.png
[7] => http://cdn.mashable.com/wp-content/uploads/2009/02/bizspark.jpg
[8] => http://feedads.g.doubleclick.net/~at/lxx00QTjYBaYojpnpnTa6MXUmh4/0/di
[9] =>
[10] => http://feedads.g.doubleclick.net/~at/lxx00QTjYBaYojpnpnTa6MXUmh4/1/di
[11] =>
[12] => http://feeds.feedburner.com/~ff/Mashable?i=0N_mvMwPHYk:j5Pmi_N-JQ8:D7DqB2pKExk
[13] =>
[14] => http://feeds.feedburner.com/~ff/Mashable?i=0N_mvMwPHYk:j5Pmi_N-JQ8:V_sGLiPBpWU
[15] =>
[16] => http://feeds.feedburner.com/~ff/Mashable?i=0N_mvMwPHYk:j5Pmi_N-JQ8:F7zBnMyn0Lo
[17] =>
[18] => http://feeds.feedburner.com/~ff/Mashable?d=qj6IDK7rITs
[19] =>
[20] => http://feeds.feedburner.com/~ff/Mashable?d=_e0tkf89iUM
[21] =>
[22] => http://feeds.feedburner.com/~ff/Mashable?i=0N_mvMwPHYk:j5Pmi_N-JQ8:gIN9vFwOqvQ
[23] =>
[24] => http://feeds.feedburner.com/~ff/Mashable?d=yIl2AUoC8zA
[25] =>
[26] => http://feeds.feedburner.com/~ff/Mashable?d=P0ZAIrC63Ok
[27] =>
[28] => http://feeds.feedburner.com/~ff/Mashable?d=I9og5sOYxJI
[29] =>
[30] => http://feeds.feedburner.com/~ff/Mashable?d=CC-BsrAYo0A
[31] =>
[32] => http://feeds.feedburner.com/~ff/Mashable?i=0N_mvMwPHYk:j5Pmi_N-JQ8:_cyp7NeR2Rw
[33] =>
[34] => http://feeds.feedburner.com/~r/Mashable/~4/0N_mvMwPHYk
)
basically, i want to
- remove every empty array element
- remove every array item without
extensions
".jpg,.png,.gif"
in its name; - finally remove array items containing keywords such as
"digg,fb,tweet,bizspark"
.