×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Robert Taller
Added: Apr 12, 2017 1:02 PM
Modified: Apr 12, 2017 1:05 PM
Views: 21
Tags: get parse php url
  1. public function parseUrl() {
  2.     if(isset($_GET['url'])) {
  3.         return $url = explode('/', filter_var(rtrim($_GET['url'], '/'), FILTER_SANITIZE_URL));
  4.     }
  5. }