Answer the question
In order to leave comments, you need to log in
How to cut out the desired part in the url?
hello everyone, i have a url
http://picsbu/photo-by?=sportbible/1767719088825304873/812791281/shortcode/BiIMyVAHAcp
Answer the question
In order to leave comments, you need to log in
$url = 'http://picsbu/photo-by?=sportbible/1767719088825304873/812791281/shortcode/BiIMyVAHAcp';
$shortcode = preg_replace("/(.*)\/shortcode\/(.*)/", '$2', $url); // BiIMyVAHAcp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question