yadav Posted August 14, 2007 Posted August 14, 2007 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.
enaiman Posted August 14, 2007 Posted August 14, 2007 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 :)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now