removing related urls from array
Moderator: General Moderators
-
someguyhere
- Forum Contributor
- Posts: 181
- Joined: Sun Jul 27, 2008 3:24 pm
removing related urls from array
I have an array that contains a list of urls, one may be the root domain, another may be a subfolder. I've already implemented array_unique() to wipe out exact matches, but I can't find out how to remove items that fall into this criteria. If it makes a difference, I would prefer to drop the root and keep the subfolder.
Re: removing related urls from array
Take a look at this tutorial on preg_match()
http://www.tipsntutorials.com/tutorials/PHP/50
http://www.tipsntutorials.com/tutorials/PHP/50