PHP Manual

PHP function constant()

2019-09-11T08:04:04.000Z

Obsah článku

Availability in versions: PHP 4.0.4

Parameters

Parameter Data type Default value Note
$name string not The constant name.

Return values

  • int

    The filter() method must return one of three values upon completion.



    /
    public function filter($in, $out, &$consumed, $closing)
    {
    }

    /**

    • bool
      /
      public function onCreate()
      {
      }

    /**

    • string
    • mixed the value of the constant, or &null; if the constant is not
      defined.

    Other resources

    }

    /**
    Instances of Directory are created by calling the dir() function, not by the new operator.
    /
    class Directory {

    /**

    /**
    Rewind directory handle.
    Same as rewinddir(), only dir_handle defaults to $this.

    /**
    Read entry from directory handle.
    Same as readdir(), only dir_handle defaults to $this.

    }

    /**
    Returns the value of a constant

    Jan Barášek   Více o autorovi

    Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

    Rád vám pomůžu:

    Související články

    1.
    317.

    V jiných jazycích

    Nejlepší tipy a triky o PHP do Vašeho e-mailu.

    Články a novinky nejen ze světa PHP a programování. Nenechte si ujít jediný článek.

    Status:
    All systems normal.
    2025
    Return Value Meaning
    PSFS_PASS_ON Filter processed successfully with data available in the out bucket brigade.
    PSFS_FEED_ME Filter processed successfully, however no data was available to return. More data is required from the stream or prior filter.
    PSFS_ERR_FATAL (default) The filter experienced an unrecoverable error and cannot continue.