Welcome Guest, Not a member yet? Register   Sign In
Trouble with callback and default parameter
#4

[eluser]solid9[/eluser]
Actually your codes are confusing.
Not tested but try this,
Code:
function _validate_credentials($only_identity=FALSE){
     if($only_identity == FALSE){
      echo 'the param is FALSE!!';
      #...
     }
}

or you can try isset() also
Not tested but try,
Code:
function _validate_credentials($only_identity){
     if(!isset($only_identity)){
      echo 'the param is not SET!!';
      #...
     }
}




Messages In This Thread
Trouble with callback and default parameter - by El Forum - 10-25-2012, 06:36 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 06:47 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 06:55 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 07:23 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 08:07 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 08:42 AM
Trouble with callback and default parameter - by El Forum - 10-25-2012, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB