sandy1028 Posted April 15, 2011 Share Posted April 15, 2011 http://www.abc.com/sports/more/others/Younger-people/show/7321382.xml http://www.abc.com/news/head/Elder-people/show/7321302.xml In the above string,please tell me how to extract the portion, and store "sports/more/others" and "news/head" in another string. Link to comment https://forums.phpfreaks.com/topic/233795-string-extract/ Share on other sites More sharing options...
nethnet Posted April 15, 2011 Share Posted April 15, 2011 Could you clarify what exactly you are trying to do? I mean, are you trying to implement a similar way of passing data in your own URLs like this, and then extract certain bits of it on your pages? Or are you literally taking a string that is a URL (abc.com) and trying to extract certain bits of information from it? Sorry if this seems like a stupid question, I'm just not entirely sure which of these you are trying to accomplish. Link to comment https://forums.phpfreaks.com/topic/233795-string-extract/#findComment-1201936 Share on other sites More sharing options...
sandy1028 Posted April 15, 2011 Author Share Posted April 15, 2011 This is a value from DB and storing it a string. I want to parse the value and extract only "sports/more/others" and "news/head" and store in another string Link to comment https://forums.phpfreaks.com/topic/233795-string-extract/#findComment-1201939 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.