Пример #1
0
<?php

// Include the efuzyon bootstrap
include "../../efuzyon.init.php";
// You can use unix Timestamp
#$begin = time();
#$end = time()-86400;
// OR DateTime
$in = "2014-03-10 10:00:00";
$out = "2014-03-11 10:00:00";
// Calculating the difference
$output = eFuzyon\Datetime::Diff($in, $out);
// Output the difference
#eFuzyon\Debug::Printr($output);
eFuzyon\Debug::Dump($output);
Пример #2
0
<?php

// Include the efuzyon bootstrap
include "../../efuzyon.init.php";
// Setting the first stdClass
$firstObj = new stdClass();
$firstObj->project = "eFuzyon";
$firstObj->version = "1.0.2";
// Setting the second stdClass
$secondObj = new stdClass();
$secondObj->project = "eFuzyon [2]";
$secondObj->version = "1.0.2 [2]";
// Output
eFuzyon\Debug::Dump($firstObj, $secondObj);
Пример #3
0
<?php

// Include the efuzyon bootstrap
include "../../efuzyon.init.php";
// Setting the first stdClass
$firstObj = new stdClass();
$firstObj->project = "eFuzyon";
$firstObj->version = "1.0.2";
// Setting the second stdClass
$secondObj = new stdClass();
$secondObj->project = "eFuzyon [2]";
$secondObj->version = "1.0.2 [2]";
// Output
eFuzyon\Debug::Printr($firstObj, $secondObj);