note 26983 deleted from function.func-num-args by didou
| From: | didou@php.net | Date: | Thu, 29 May 2003 22:49:58 +0000 |
| Subject: | note 26983 deleted from function.func-num-args by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49371@lists.php.net to get a copy of this message | ||
Note Submitter: moosh@phpFRance.com
----
With following script I want show that you can give some param in the description (like
Test2())
<?
function Test1()
{
echo "
<ul>
<li> func_num_args : ".func_num_args()."</li>
<li> func_get_args : ";
print_r(func_get_args());
echo "
</li>
</ul>";
}
function Test2($hello)
{
echo "
<ul>
<li>func_num_args :".func_num_args()."</li>
<li>hello :".$hello."</li>
<li>func_get_args";
print_r(func_get_args());
echo "
</li>
</ul>";
}
$one = " 1 ";
$two = " 2 ";
echo "
<OL>
<LI>",Test1(),"</LI>
<LI>This is erronous : <br> ",Test2(),"</LI>
<LI>",Test1($one),"</LI>
<LI>",Test2($one),"</LI>
<LI>",Test1($one,$two),"</LI>
<LI>",Test2($one,$two),"</LI>
</OL>
";
?>