|
Posted by Khorosh Irani on 10/19/05 11:14
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@johnallsopp.co.uk <john@johnallsopp.co.uk> 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
>
Navigation:
[Reply to this message]
|