cvs: phpdoc-fr /reference/funchand/functions call-user-func-array.xml
| From: | Damien Seguy | Date: | Tue, 06 Apr 2004 15:15:57 +0000 |
| Subject: | cvs: phpdoc-fr /reference/funchand/functions call-user-func-array.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2132@lists.php.net to get a copy of this message | ||
dams Tue Apr 6 11:15:57 2004 EDT
Modified files:
/phpdoc-fr/reference/funchand/functions call-user-func-array.xml
Log:
proto update, example upgrade
http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/call-user-func-array.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-fr/reference/funchand/functions/call-user-func-array.xml
diff -u phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.5
phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.6
--- phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.5 Tue Feb 24 13:09:50 2004
+++ phpdoc-fr/reference/funchand/functions/call-user-func-array.xml Tue Apr 6 11:15:57 2004
@@ -1,9 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
-
-<!-- splitted from ./fr/functions/funchand.xml, last change in rev 1.14 -->
-<!-- last change to 'call-user-func-array' in en/ tree in rev 1.10 -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.11 Maintainer: nobody Status: partial -->
<refentry id="function.call-user-func-array">
<refnamediv>
<refname>call_user_func_array</refname>
@@ -16,31 +13,35 @@
<methodsynopsis>
<type>mixed</type><methodname>call_user_func_array</methodname>
<methodparam><type>callback</type><parameter>function</parameter></methodparam>
- <methodparam
choice="opt"><type>array</type><parameter>paramarr</parameter></methodparam>
+ <methodparam
choice="opt"><type>array</type><parameter>param_arr</parameter></methodparam>
</methodsynopsis>
<para>
<function>call_user_func_array</function> appelle la fonction utilisateur
- <parameter>function_name</parameter> avec les paramètres
- <parameter>paramarr</parameter>, rassemblés dans un tableau.
+ <parameter>function</parameter> avec les paramètres
+ <parameter>param_arr</parameter>, rassemblés dans un tableau.
<example>
<title>Exemple avec <function>call_user_func_array</function></title>
<programlisting role="php">
<![CDATA[
-function debug($var, $val)
- echo "***DEBUGGING\nVARIABLE: $var\nVALUE:";
- if (is_array($val) || is_object($val) || is_resource($val))
+<?php
+function debug($var, $val)
+{
+ echo "***Deboggage\nVariable : $var\nValeur :";
+ if (is_array($val) || is_object($val) || is_resource($val)) {
print_r($val);
- else
+ } 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));
+call_user_func_array('debug', array("host", $host));
+call_user_func_array('debug', array("c", $c));
+call_user_func_array('debug', array("_POST", $_POST));
+?>
]]>
</programlisting>
</example>