Pchp.Library.Constants.define C# (CSharp) Method

define() public static method

Defines a constant.
public static define ( Context ctx, string name, PhpValue value, bool caseInsensitive = false ) : bool
ctx Pchp.Core.Context Current runtime context.
name string The name of the constant. Can be arbitrary string.
value Pchp.Core.PhpValue The value of the constant. Can be null or a scalar or array.
caseInsensitive bool Whether the name is case insensitive.
return bool
        public static bool define(Context ctx, string name, PhpValue value, bool caseInsensitive = false)
            => ctx.DefineConstant(name, value, caseInsensitive);