Jump to content

user profile url help


MDanz

Recommended Posts

i forgot to add the function that will actually use the pattern to grab the info path_info from your url..

$pattern = '/^http\:\/\/www\.[a-zA-Z0-9]+?\.com\/([a-zA-Z-0-9]+?)/';
$subject = 'http://www.example.com/Username';
preg_match($pattern,$subject,$matches);
echo $matches[0];

where $matches[0] will contain your string data

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.