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

defined() public static method

Determines whether a constant is defined.
public static defined ( Context ctx, string name ) : bool
ctx Pchp.Core.Context Current runtime context.
name string The name of the constant.
return bool
        public static bool defined(Context ctx, string name)
            => ctx.IsConstantDefined(name);