Code: Select all
$url = 'https://www.fb.com/SmilePg/posts/320187951230342';
echo substr(strrchr($url, '/'), 1); // 320187951230342
http://www.php.net/manual/en/book.strings.php
Moderators: egami, macek, gesf
Code: Select all
$url = 'https://www.fb.com/SmilePg/posts/320187951230342';
echo substr(strrchr($url, '/'), 1); // 320187951230342