예제 #1
0
 protected override PhpCallable BindCore(Context ctx) => ctx.GetDeclaredFunction(_function)?.PhpCallable;
예제 #2
0
 protected override PhpCallable BindCore(Context ctx) => ctx.GetDeclaredFunction(_function)?.PhpCallable;
예제 #3
0
 /// <summary>
 /// Checks the list of defined functions, both built-in and user-defined.
 /// </summary>
 /// <returns>Whether the function is declared.</returns>
 public static bool function_exists(Context ctx, string name)
 {
     return ctx.GetDeclaredFunction(name) != null;
 }