C# Class Pchp.Library.Functions

Show file Open project: iolevel/peachpie

Public Methods

Method Description
call_user_func ( Context ctx, IPhpCallable function ) : PhpValue

Calls a function or a method defined by callback with given arguments.

call_user_func_array ( Context ctx, IPhpCallable function, PhpArray args ) : PhpValue

Calls a function or a method defined by callback with arguments stored in an array.

function_exists ( Context ctx, string name ) : bool

Checks the list of defined functions, both built-in and user-defined.

Method Details

call_user_func() public static method

Calls a function or a method defined by callback with given arguments.
public static call_user_func ( Context ctx, IPhpCallable function ) : PhpValue
ctx Pchp.Core.Context Current runtime context.
function IPhpCallable Target callback.
return Pchp.Core.PhpValue

call_user_func_array() public static method

Calls a function or a method defined by callback with arguments stored in an array.
public static call_user_func_array ( Context ctx, IPhpCallable function, PhpArray args ) : PhpValue
ctx Pchp.Core.Context Current runtime context.
function IPhpCallable Target callback.
args Pchp.Core.PhpArray Arguments. Can be null.
return Pchp.Core.PhpValue

function_exists() public static method

Checks the list of defined functions, both built-in and user-defined.
public static function_exists ( Context ctx, string name ) : bool
ctx Pchp.Core.Context
name string
return bool