Urgent help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sam_demo
Forum Newbie
Posts: 2
Joined: Mon Apr 13, 2009 2:27 am

Urgent help

Post by sam_demo »

hello all,

I am working on one page , I stuck on one place my query is following

http://www.mysamworld.com/me/page/1

friend I want to get only the last 2 parameters from url which is page/1 ,how can I get that in php code

thanks
sam
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Urgent help

Post by mikemike »

Look up parse_url() and explode(). Should be quite straight forward.
Post Reply