=============== EEPHP\EasyEx\HelloWo\   Print\   Program\
===============   HelloWo1.PHP   ===============

<?
   PRINT (   "Hello World..."   );
?>

===============   HelloWo5.PHP   ===============

<?
   PRINT (   "Hello World....."  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Hello World....."  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Hello World....."  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Hello World....."  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Hello World....."  .  "<BR>"  .  "\r\n"   );
?>

===============   HelloWo9.PHP   ===============

<?
   FOR ( $i = 1 ; $i <= 9 ; $i++ )  {
      PRINT (   "Hello World........."  .  "<BR>"  .  "\r\n"   );
   }
?>

===============   Prin2x2.PHP   ===============

<?
   PRINT (   2 + 2   );
?>

===============   PrinCalc.PHP   ===============

<?
   $R = 10 ;

   $C = 2 * PI() * $R ;
   $A = PI() * $R * $R ;

   PRINT (   "Radius="         .  $R  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Circumference="  .  $C  .  "<BR>"  .  "\r\n"   );
   PRINT (   "Area="           .  $A  .  "<BR>"  .  "\r\n"   );
?>

===============   PrinMsg.PHP   ===============

<?
   $MyMsg =  "- Nice weather, isn't it ?"  .  "\r\n"
           . "- Yes \"nice\" weather."     .  "\r\n" ;

   PRINT (   Str_Replace("\r\n","<BR>\r\n", $MyMsg )   );
?>

===============   Chr20_FF.PHP   ===============

<?
   PRINT (   "***** CHARS: "   );

   //----- LOOP
   FOR ( $i = 32 ; $i <= 255 ; $i++ )  {
      PRINT (   CHR($i)   );
   }
?>

===============   PrimeNb.PHP   ===============

<?
   $IsPrimeArray = Array(1000);

   PRINT (   "***** PRIME NUMBERS: "   );

   //----- LOOP 1 , On each number
   FOR ( $i = 1 ; $i <= 1000 ; $i++ )  {

      //----- Could be a prime number
      $IsPrimeArray[$i] = TRUE ;

      $j    = 2 ;
      $jMax = bcdiv ( $i , 2 );

      //----- LOOP 2 , Search a divisor
      WHILE ($IsPrimeArray[$i] && ($j <= $jMax))  {
         //----- "j" can divide "i" ?
         IF (($i % $j) == 0)
             $IsPrimeArray[$i] = False ;
         $j++ ;
      }

      //----- Display only prime numbers
      IF ($IsPrimeArray[$i] == TRUE)
         PRINT (   $i  .  " "   );
   }

/*
   [<--                   i                      -->]
    [<-- j -->]
   .#.....................#.........................#
    |         |                                     |
    2      i div 2                                1000
*/
?>
