PHP Classes

Unique Values from URLs: Get unique of domains from a list of URLs

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 109 This week: 1All time: 9,634 This week: 560Up
Version License PHP version Categories
unique-values-from-u 1.0Freely Distributable5Networking, PHP 5
Description 

Author

This class can get unique of domains from a list of URLs.

It takes a list of URLs and parse them to extract the host.

The class returns an array with the list of domains contained in the URLs.

Picture of Peace Ngara
Name: Peace Ngara <contact>
Classes: 1 package by
Country: South Africa South Africa
Age: ???
All time rank: 438426 in South Africa South Africa
Week rank: 411 Up4 in South Africa South Africa Up

Example

<?php
//Inlcude tghe Parser
include_once "Parser.php";

   
$urls = array(
   
'http://www.google.com',
   
'https://www.google.com',
   
'https://www.google.com/',
   
'https://www.facebook.com',
   
'http://www.facebook.com'
   
);
   
//Instantiate
   
$parse = new Parser();
   
$parse->arrayValuesUrlParser($urls);
   
?>


Details

unique-values-from-urls

Get Unique Values from URL's, a URL Parse that will remove dumplicates from URL's


  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Plain text file Parser.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:109
This week:1
All time:9,634
This week:560Up