Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hamed Afshar  >  MoonPhase  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: MoonPhase
Determine the Moon phase on a given date
Author: By
Last change:
Date: 5 years ago
Size: 418 bytes
 

Contents

Class file image Download
<?
require_once("moonphase.php");

$day="10";
$month="04";
$year="2009";

$myMoon=new MoonPhase($day,$month,$year);
echo 
"picture: ".$myMoon->showPicture()."<br>";
echo 
"age: ".$myMoon->showAge()."<br>";
echo 
"phase: ".$myMoon->showPhase()."<br>";
echo 
"distance: ".$myMoon->showDistance()."<br>";
echo 
"latitude: ".$myMoon->showLatitude()."<br>";
echo 
"longitude: ".$myMoon->showLongitude()."<br>";

?>