Re: Some Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello
1.I dont have this mean I want this:
for example I write this function :myfunction ($para1, $para2,
$para3=123) .And I want to make $para1 optional that If I didnt write
it (for example:myfunction(1,123) )
It does not make problem
2.I want to see all of header not HTTP_USER_AGENT?
Thanks
On 4/26/05, john@xxxxxxxxxxxxxxxxx <john@xxxxxxxxxxxxxxxxx> wrote:
> I'm no authority, but I'm going to have a punt at this one
> 
> > 1.How I can make a optional argument in function that if I dont
> > mention it in my code does not make problem?
> 
> You can pass fewer arguments than specified in a function, so just
> make the optional ones to the right of the required ones. Also if you,
> say myfunction ($para1, $para2, $para3=123) it makes $para3 hold a
> default value if nothing's passed
> 
> > 2.How I can see apache or IIS headers?
> 
> Look for $HTTP_ followed by the header name in upper case and with any
> -s replaced by _, eg. HTTP_USER_AGENT
> 
> hth
> J
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux