Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Pchp
Library
Constants
constant
Pchp.Library.Constants.constant C# (CSharp) Method
Constants Class Documentation
Mostrar archivo
Open project: iolevel/peachpie
constant()
public
static
method
Retrieves a value of a constant.
public
static
constant
(
Context
ctx
,
string
name
) :
PhpValue
ctx
Pchp.Core.Context
Current runtime context.
name
string
The name of the constant.
return
Pchp.Core.PhpValue
public static PhpValue constant(Context ctx, string name) => ctx.GetConstant(name);
Constants
constant
define
defined
get_defined_constants