PHP Classes

File: tests/is_coordinate.php

Recommend this page to a friend!
  Classes of Ali YILMAZ  >  Mind Framework  >  tests/is_coordinate.php  >  Download  
File: tests/is_coordinate.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 3 months ago
Size: 544 bytes
 

Contents

Class file image Download
<?php

require_once '../src/Mind.php';

$Mind = new Mind();

/* These are two points in Turkey */
$point1 = array('lat' => 41.008610, 'long' => 28.971111); // Istanbul
$point2 = array('lat' => 39.925018, 'long' => 32.836956); // Anitkabir

echo '<br>';

if(
$Mind->is_coordinate($point1['lat'], $point1['long'])){
    echo
'The current coordinate.';
} else {
    echo
'Invalid coordinate.';
}

echo
'<br>';

if(
$Mind->is_coordinate($point2['lat'], $point2['long'])){
    echo
'The current coordinate.';
} else {
    echo
'Invalid coordinate.';
}

For more information send a message to info at phpclasses dot org.