[Solved] Making function with brackets [closed]
You’re overthinking it. function my_test($var1, $var2){ global $privileges; $var3 = $var1+$var2; if($var3 != $privileges){ return false }else{ return true; } } if( my_test(‘var1’, ‘var2’) ) { // true – do code } else { //false – don’t } Assuming that that is just example code, because that really just condenses down to: if ( $var1+$var2 … Read more