$diff2 = microtime(TRUE) - $time;
print 'diff1=' . $diff1 . ',diff2=' . $diff2 . PHP_EOL;
-
-?>
print 'After ' . $totalDays . ' days (' . $years . ' years) you have eaten ' . $y . ' fruits.' . PHP_EOL;
print 'Length:' . strlen($y) . PHP_EOL;
-
-?>
bcscale(20);
$balance = 1;
-$years = 100;
-$rate = 0.02;
+$years = 2017;
+$rate = 0.03;
$totalMonths = $years * 12;
for ($i = 1; $i <= $totalMonths; $i++) {
// Reduce interest rate every month
- $rate = bcdiv($rate, 1.001);
+ $rate = bcdiv($rate, 1.00001);
// Calculate interest
$interest = bcmul($balance, $rate);
print 'After ' . $totalMonths . ' months (' . $years . ' years) you have ' . $balance . ' EUR back.' . PHP_EOL;
//print 'Length:' . strlen($balance) . PHP_EOL;
-
-?>
$prev = $fib;
$fib = $sum;
}
-
-?>
*
* --foo=bar - parameter 'foo' gets value "bar" (string)
* --enable-foo=true - parameter 'enableFoo' gets value true (boolean)
- * --baz=123 - parameter 'baz' get value 123 (interger)
+ * --baz=123 - parameter 'baz' get value 123 (integer)
*
* The same also works without 2 dashes as it was possible before:
*
<?php
// Own namespace
-namespace CoreFramework\Array;
+namespace CoreFramework\ObjectArray;
// Import SPL stuff
use \ArrayObject;
<?php
// Own namespace
-namespace CoreFramework\Controller\Default;
+namespace CoreFramework\Controller;
// Import framework stuff
use CoreFramework\Controller\BaseController;
<?php
// Own namespace
-namespace CoreFramework\Controller\Default;
+namespace CoreFramework\Controller;
// Import framework stuff
use CoreFramework\Controller\BaseController;
<?php
// Own namespace
-namespace CoreFramework\Controller\Default;
+namespace CoreFramework\Controller;
// Import framework stuff
use CoreFramework\Controller\BaseController;
<?php
// Own namespace
-namespace CoreFramework\Controller\Default;
+namespace CoreFramework\Controller;
// Import framework stuff
use CoreFramework\Controller\BaseController;
/**
* A class for binding to the FUSE wrapper. This class requires the PHP
* extension fuse.dll/so being added to your setup. If you want to use this
- * class, please activate and use the FUSE feature instead of this class
+ * class, please activate and use the FUSE feature instead of using this class
* directly. This gives you all required pre-tests. Please read there for
* more detailed informations.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-public class FrameworkFuseWrapper extends FuseWrapper implements Registerable {
+class FrameworkFuseWrapper extends FuseWrapper implements Registerable {
/**
* Get attributes
*
<?php
// Own namespace
-namespace CoreFramework\Array;
+namespace CoreFramework\ObjectArray;
// Import framework stuff
use CoreFramework\Generic\FrameworkException;
<?php
// Own namespace
-namespace CoreFramework\Array;
+namespace CoreFramework\ObjectArray;
// Import framework stuff
use CoreFramework\Generic\FrameworkException;
*/
class Test extends PHPUnit_Framework_TestCase {
}
-
-?>
DebugMiddleware::getInstance()->output(sprintf("Es stehen <strong>%d</strong> Betten zur Verfügung.",
$totalBeds
));
-
-//
-?>
// Try to save the object (for testing purposes)
$personell->saveObjectToDatabase();
-
-//
-?>
// Try to save the object (for testing purposes)
$personell->saveObjectToDatabase();
-
-//
-?>