Lines Matching refs:operator
109 function prepareBinaryLine($op1, $op2, $cmp, $operator) {
113 $error = "echo '" . addcslashes("$op1_p $operator $op2_p", "\\'") . '\', "\n"; $f++;';
115 $compare = "@($op1_p $operator $op2_p)";
126 function prepareUnaryLine($op, $cmp, $operator) {
129 $error = "echo '" . addcslashes("$operator $op_p", "\\'") . '\', "\n"; $f++;';
131 $compare = "@($operator $op_p)";
150 foreach ($binaryOperators as $operator) {
151 $line = prepareBinaryLine($left, $right, function() use ($left, $right, $operator) {
152 return eval("return @(\$left $operator \$right);");
153 }, $operator);
159 foreach ($unaryOperators as $operator) {
160 $line = prepareUnaryLine($right, function() use ($right, $operator) {
161 return eval("return @($operator \$right);");
162 }, $operator);