2 /* Prototype : array date_sun_info ( int $time , float $latitude , float $longitude )
3 * Description: Returns an array with information about sunset/sunrise and twilight begin/end.
4 * Source code: ext/standard/data/php_date.c
7 date_default_timezone_set("UTC");
9 echo "*** Testing date_sun_info() : usage variations ***\n";
11 //get an unset variable
21 // get a resource variable
22 $fp = fopen(__FILE__
, "r");
59 /*22*/ @$undefined_var,
68 // loop through each element of $inputs to check the behaviour of date_sun_info()
71 foreach($inputs as $input) {
72 echo "\n-- Iteration $iterator --\n";
73 var_dump(date_sun_info(strtotime("2006-12-12"), 31.7667, $input));