PHP Classes

File: examples/params.php

Recommend this page to a friend!
  Classes of Jake Bown   Urly   examples/params.php   Download  
File: examples/params.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Urly
Clean and modify relative or absolute URLs
Author: By
Last change:
Date: 8 years ago
Size: 301 bytes
 

Contents

Class file image Download
<?php

/*
 * Params - You can return just the parameters of the URL rather than the full URL
 */

require '../urly.php';

$url = 'http://www.amazon.com/gp/product/B002FJZLJY?ref_=gbsl_tit_l-1_4822_895d0299&smid=ATVPDKIKX0DER';

$urly = new urly($url);
$result = $urly->run();

echo
$urly->params;


?>