svn: /phpdoc/en/trunk/reference/funchand/functions/ func-get-arg.xml

From: Date: Thu, 14 May 2015 08:23:00 +0000
Subject: svn: /phpdoc/en/trunk/reference/funchand/functions/ func-get-arg.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13294@lists.php.net to get a copy of this message
salathe Thu, 14 May 2015 08:23:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=336767 Log: Added missing output in func-get-arg 1st example -- Provided by jonid.bendo@gmail.com via online editor Changed paths: U phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml Modified: phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml =================================================================== --- phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml 2015-05-14 08:10:24 UTC (rev 336766) +++ phpdoc/en/trunk/reference/funchand/functions/func-get-arg.xml 2015-05-14 08:23:00 UTC (rev 336767) @@ -99,16 +99,25 @@ function foo() { $numargs = func_num_args(); - echo "Number of arguments: $numargs<br />\n"; + echo "Number of arguments: $numargs\n"; if ($numargs >= 2) { - echo "Second argument is: " . func_get_arg(1) . "<br />\n"; + echo "Second argument is: " . func_get_arg(1) . "\n"; } } -foo (1, 2, 3); +foo(1, 2, 3); ?> ]]> </programlisting> + <para> + &example.outputs; + </para> + <screen> +<![CDATA[ +Number of arguments: 3 +Second argument is: 2 +]]> + </screen> </example> </para> <para>

« previous php.doc.cvs (#13294) next »