Get path from URL

PJAmerica

New Member
Looking for a way of getting the path from an URL in PHP:I want to take: \[code\]http://example.com/hurrdurr\[/code\]And make it: \[code\]hurrdurr\[/code\]I only want the text after \[code\].com/\[/code\]Can i do this with trim?
 
Back
Top