cvs: phpdoc /en/reference/funchand/functions call-user-func-array.xml call-user-func.xml create-function.xml func-get-arg.xml func-get-args.xml
func-num-args.xml get-defined-functions.xml

From: Date: Thu, 15 Jan 2004 12:42:26 +0000
Subject: cvs: phpdoc /en/reference/funchand/functions call-user-func-array.xml call-user-func.xml create-function.xml func-get-arg.xml func-get-args.xml
func-num-args.xml get-defined-functions.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358200@lists.php.net to get a copy of this message
didou Thu Jan 15 07:42:26 2004 EDT Modified files: /phpdoc/en/reference/funchand/functions call-user-func-array.xml call-user-func.xml create-function.xml func-get-arg.xml func-get-args.xml func-num-args.xml get-defined-functions.xml Log: CS : Function declarations follow the 'one true brace' convention Index: phpdoc/en/reference/funchand/functions/call-user-func-array.xml diff -u phpdoc/en/reference/funchand/functions/call-user-func-array.xml:1.9 phpdoc/en/reference/funchand/functions/call-user-func-array.xml:1.10 --- phpdoc/en/reference/funchand/functions/call-user-func-array.xml:1.9 Thu Dec 18 18:59:55 2003 +++ phpdoc/en/reference/funchand/functions/call-user-func-array.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.10 --> <refentry id="function.call-user-func-array"> <refnamediv> @@ -26,7 +26,8 @@ <programlisting role="php"> <![CDATA[ <?php -function debug($var, $val) { +function debug($var, $val) +{ echo "***DEBUGGING\nVARIABLE: $var\nVALUE:"; if (is_array($val) || is_object($val) || is_resource($val)) { print_r($val); Index: phpdoc/en/reference/funchand/functions/call-user-func.xml diff -u phpdoc/en/reference/funchand/functions/call-user-func.xml:1.9 phpdoc/en/reference/funchand/functions/call-user-func.xml:1.10 --- phpdoc/en/reference/funchand/functions/call-user-func.xml:1.9 Thu Dec 18 18:59:55 2003 +++ phpdoc/en/reference/funchand/functions/call-user-func.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.call-user-func"> <refnamediv> @@ -26,7 +26,8 @@ <programlisting role="php"> <![CDATA[ <?php -function barber($type) { +function barber($type) +{ echo "You wanted a $type haircut, no problem"; } call_user_func('barber', "mushroom"); @@ -47,7 +48,8 @@ <![CDATA[ <?php class myclass { - function say_hello() { + function say_hello() + { echo "Hello!\n"; } } Index: phpdoc/en/reference/funchand/functions/create-function.xml diff -u phpdoc/en/reference/funchand/functions/create-function.xml:1.5 phpdoc/en/reference/funchand/functions/create-function.xml:1.6 --- phpdoc/en/reference/funchand/functions/create-function.xml:1.5 Thu Dec 18 12:44:06 2003 +++ phpdoc/en/reference/funchand/functions/create-function.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.create-function"> <refnamediv> @@ -60,9 +60,11 @@ <programlisting role="php"> <![CDATA[ <?php -function process($var1, $var2, $farr) { - for ($f=0; $f < count($farr); $f++) +function process($var1, $var2, $farr) +{ + for ($f=0; $f < count($farr); $f++) { echo $farr[$f]($var1, $var2) . "\n"; + } } // create a bunch of math functions Index: phpdoc/en/reference/funchand/functions/func-get-arg.xml diff -u phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.3 phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.4 --- phpdoc/en/reference/funchand/functions/func-get-arg.xml:1.3 Mon Dec 15 11:49:46 2003 +++ phpdoc/en/reference/funchand/functions/func-get-arg.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-get-arg"> <refnamediv> @@ -29,7 +29,8 @@ <programlisting role="php"> <![CDATA[ <?php -function foo() { +function foo() +{ $numargs = func_num_args(); echo "Number of arguments: $numargs<br />\n"; if ($numargs >= 2) { Index: phpdoc/en/reference/funchand/functions/func-get-args.xml diff -u phpdoc/en/reference/funchand/functions/func-get-args.xml:1.3 phpdoc/en/reference/funchand/functions/func-get-args.xml:1.4 --- phpdoc/en/reference/funchand/functions/func-get-args.xml:1.3 Mon Dec 15 11:49:46 2003 +++ phpdoc/en/reference/funchand/functions/func-get-args.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-get-args"> <refnamediv> @@ -25,7 +25,8 @@ <programlisting role="php"> <![CDATA[ <?php -function foo() { +function foo() +{ $numargs = func_num_args(); echo "Number of arguments: $numargs<br />\n"; if ($numargs >= 2) { Index: phpdoc/en/reference/funchand/functions/func-num-args.xml diff -u phpdoc/en/reference/funchand/functions/func-num-args.xml:1.3 phpdoc/en/reference/funchand/functions/func-num-args.xml:1.4 --- phpdoc/en/reference/funchand/functions/func-num-args.xml:1.3 Mon Dec 15 11:49:46 2003 +++ phpdoc/en/reference/funchand/functions/func-num-args.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.1 --> <refentry id="function.func-num-args"> <refnamediv> @@ -24,7 +24,8 @@ <programlisting role="php"> <![CDATA[ <?php -function foo() { +function foo() +{ $numargs = func_num_args(); echo "Number of arguments: $numargs\n"; } Index: phpdoc/en/reference/funchand/functions/get-defined-functions.xml diff -u phpdoc/en/reference/funchand/functions/get-defined-functions.xml:1.3 phpdoc/en/reference/funchand/functions/get-defined-functions.xml:1.4 --- phpdoc/en/reference/funchand/functions/get-defined-functions.xml:1.3 Mon Jun 16 10:37:37 2003 +++ phpdoc/en/reference/funchand/functions/get-defined-functions.xml Thu Jan 15 07:42:26 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/funchand.xml, last change in rev 1.6 --> <refentry id="function.get-defined-functions"> <refnamediv> @@ -26,7 +26,8 @@ <programlisting role="php"> <![CDATA[ <?php -function myrow($id, $data) { +function myrow($id, $data) +{ return "<tr><th>$id</th><td>$data</td></tr>\n"; }

« previous php.doc (#969358200) next »