Latest Tutorials

Example with a SWITCH - CASE - DEFAULT statement with BREAK

<?php $a = 2; switch ($a) { case 1: echo "Variable ...

Example with a WHILE statement

<?php echo "<div style='font-family:Calibri;font-size:1.7em...

Example with a DO - WHILE statement

<?php echo "<div style='font-family:Calibri;font-size:1.7em...

Example with a FOR statement

<?php echo "<div style='font-family:Calibri;font-size:0.9em...

Example with a FOREACH statement

<?php echo "<div style='font-family:Calibri;font-size:1.1em...

Example with a BREAK and a CONTINUE statements

<?php echo "<div style='font-family:Calibri;font-size:0.8em...

Basic example with a DECLARE construct

<?php     declare(ticks=1); // valid statement     const TICK_VALUE = 1; //invalid statement     declare(ticks=TICK_VALUE); ?>...

Example of a DECLARE construct with TICK directive set

<?php echo "<div style='font-family:Calibri;font-size:0.9em...

Example with RETURN statement in a function

<?php echo "<div style='font-family:Calibri;font-size:0.8em...

Example with REQUIRE_ONCE statement

<?php     require_once(_ROOT_."/config.php"); ?>