operators.php3

来自「radius开放源码,用C写的,广泛用于认证服务器、认证计费。」· PHP3 代码 · 共 43 行

PHP3
43
字号
<?php$op_eq = '=';$op_set = ':=';$op_add = '+=';$op_eq2 = '==';$op_ne = '!=';$op_gt = '>';$op_ge = '>=';$op_lt = '<';$op_le = '<=';$op_regeq = '=~';$op_regne = '!~';$op_exst = '=*';$op_nexst = '!*';// Check the operator if it is allowed for this type of// attribute (check or reply).// Arguments:// $op: The operator// $type: 1(check),2(reply)// Return value:0 for OK, -1 for errorfunction check_operator($op,$type){	switch($op){		case '=': 		case ':=':		case '+=':			return 0;		case '==':		case '!=':		case '>':		case '>=':		case '<':		case '<=':		case '=~':		case '!~':		case '=*':		case '!*':			return ($type == 1) ? 0 : -1;	}}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?