PHP: call_user_func_array - Manual in Deutsh
PHP: call_user_func_array - Manual in French
PHP: call_user_func_array - Manual in Polish

You Are At PHP: call_user_func_array - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

call_user_func_array

(PHP 4 >= 4.0.4, PHP 5)

call_user_func_array -- Call a user function given with an array of parameters

Description

mixed call_user_func_array ( callback function, array param_arr )

Call a user defined function with the parameters in param_arr.

Parameters

function

The function to be called.

param_arr

The parameters to be passed to the function, as an indexed array.

Return Values

Returns the function result, or FALSE on error.

Examples

Example 1. call_user_func_array() example

<?php
function debug($var, $val)
{
    echo
"***DEBUGGING\nVARIABLE: $var\nVALUE:";
    if (
is_array($val) || is_object($val) || is_resource($val)) {
        
print_r($val);
    } else {
        echo
"\n$val\n";
    }
    echo
"***\n";
}

$c = mysql_connect();
$host = $_SERVER["SERVER_NAME"];

call_user_func_array('debug', array("host", $host));
call_user_func_array('debug', array("c", $c));
call_user_func_array('debug', array("_POST", $_POST));
?>

See Also

call_user_func()
information about the callback type

Wyjatkowej jakości meble medyczne w xmebel
Kotły gazowe
Grzejniki
zespół weselny warszawa
Największa baza pytań egzamin doradca podatkowy testy na doradce podatkowego

Another Useful functions:


zend-api.zend-std-call-user-call | zend-api.zend-objects-store-call-destructors | zend-api.zend-call-method | zend-api.zend-call-method-with-2-params | zend-api.zend-call-method-with-1-params | zend-api.zend-call-method-with-0-params | zend-api.zend-call-function | zend-api.call-user-function | zend-api.call-user-function-ex | function.xmlrpc-server-create | function.xmlrpc-server-call-method | function.xmlrpc-server-call-method | function.xmlrpc-server-add-introspection-data | function.w32api-set-call-method | function.call-user-method | function.call-user-method-array | function.call-user-func | function.call-user-func-array |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.