Find URL in parameters string


/ Published in: PHP
Save to your folder(s)

Find URL in parameters string


Copy this code and paste it in your HTML
  1. preg_match('/(?<=http).*?/?(https?.*)/',$url, $match);
  2. $url_in_params = urldecode($match[1]);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.