Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
   1  <?php
   2  
   3  namespace PhpOffice\PhpSpreadsheet\Calculation\Logical;
   4  
   5  class Boolean
   6  {
   7      /**
   8       * TRUE.
   9       *
  10       * Returns the boolean TRUE.
  11       *
  12       * Excel Function:
  13       *        =TRUE()
  14       *
  15       * @return bool True
  16       */
  17      public static function true(): bool
  18      {
  19          return true;
  20      }
  21  
  22      /**
  23       * FALSE.
  24       *
  25       * Returns the boolean FALSE.
  26       *
  27       * Excel Function:
  28       *        =FALSE()
  29       *
  30       * @return bool False
  31       */
  32      public static function false(): bool
  33      {
  34          return false;
  35      }
  36  }