Jump to content

Extracting from URL


natasha_thomas

Recommended Posts

Folks,

 

I want to extract certain portion form URL.

 

Exmaple:

 

Output should be

this-is-test

 

Another Example

Output should be

this-is-yet-another-test

 

I am not sure how it can be done with preg_match() and regex or something like that...

 

Can someone help me with this please?

 

Cheers

Natasha

 

Link to comment
https://forums.phpfreaks.com/topic/230247-extracting-from-url/
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.