How to remove beginning up to end of searched 2 characters?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
us2rn4m2
New php-forum User
New php-forum User
Posts: 17
Joined: Thu Aug 09, 2012 1:28 pm

Re: How to remove beginning up to end of searched 2 characte

Post by us2rn4m2 » Fri May 23, 2014 1:26 pm

Code: Select all

$url = 'https://www.fb.com/SmilePg/posts/320187951230342';
echo substr(strrchr($url, '/'), 1);  // 320187951230342
http://www.php.net/manual/en/function.parse-url.php
http://www.php.net/manual/en/book.strings.php

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 4 guests