PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Arturs Sosins   Phone Spell   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Phone Spell
Find words that can spell a phone number
Author: By
Last change:
Date: 12 years ago
Size: 1,172 bytes


Class file image Download
 * This script is developed by Arturs Sosins aka ar2rsawseen,
 * Feel free to distribute and modify code, but keep reference to its creator
 * Phone spell class can generate words that represent dialing for provided phone number.
 * It also calculates word weight in numbers to order found variations
 * starting from most promising ones.
 * For more information, examples and online documentation visit:
//it could take some time
//measure time
$time = microtime();
$time = explode(' ', $time);
$start = $time[1] + $time[0];

//declaring class instance
$ws = new phone_spell();
//your phone number here
$arr = $ws->get("8004659269");

//end time
$time = microtime();
$time = explode(' ', $time);
$end = $time[1] + $time[0];
$total_time = round(($end - $start), 4);
'<p>PHP execution: '.$total_time.' seconds.</p>';