Jump to content

Deleting values from an array if...


katlis

Recommended Posts

Hello,

I have an array, $results, that contains a variety of links... ie: ("http://blah.com/hey/","http://www.sweet.com/yo/","/somedir/","http://nope.com/whatever","/yah/")

 

How can I remove all of the values EXCEPT the ones that contain either:

- http://blah.com

- http://www.blah.com

- or the ones that are just directories (no http/https/ftp)

 

I appreciate any help.

 

 

Link to comment
https://forums.phpfreaks.com/topic/131054-deleting-values-from-an-array-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.