cclaerhout Well-known member Jun 6, 2013 #2 tyteen4a03 said: Just for convenience's sake. Click to expand... You can use this workaround: PHP: $yourInputVariable = filter_var($yourInputVariable, FILTER_VALIDATE_BOOLEAN);
tyteen4a03 said: Just for convenience's sake. Click to expand... You can use this workaround: PHP: $yourInputVariable = filter_var($yourInputVariable, FILTER_VALIDATE_BOOLEAN);
tyteen4a03 Well-known member Jun 6, 2013 #3 cclaerhout said: You can use this workaround: PHP: $yourInputVariable = filter_var($yourInputVariable, FILTER_VALIDATE_BOOLEAN); Click to expand... Hell, I can even do (bool) $var.
cclaerhout said: You can use this workaround: PHP: $yourInputVariable = filter_var($yourInputVariable, FILTER_VALIDATE_BOOLEAN); Click to expand... Hell, I can even do (bool) $var.
cclaerhout Well-known member Jun 6, 2013 #4 tyteen4a03 said: Hell, I can even do (bool) $var. Click to expand... If the input comes from a javascript it can be a problem (unmified: true/fase, minified: 1/0). Bool will no nothing. You can find several explanations on the web.
tyteen4a03 said: Hell, I can even do (bool) $var. Click to expand... If the input comes from a javascript it can be a problem (unmified: true/fase, minified: 1/0). Bool will no nothing. You can find several explanations on the web.