Sign in to follow this  
Followers 0
yadav

How to mention optional parameter in Funtions

2 posts in this topic

How to mention optional parameter in function,actualy in i want to give two values for that option param eg:0&1,default value is 0,if we give 1 in parameter then it should submit the form,can anyone please send me the code for this.

Share this post


Link to post
Share on other sites



Func Test($param=0)
;Do stuff when function called without any parameter
If $param=1 Then
;Do stuff when function called with parameter
EndIf
EndFunc


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0