Lines Matching refs:operator
115 function prepareBinaryLine($op1, $op2, $cmp, $operator) {
119 $error = "echo '" . addcslashes("$op1_p $operator $op2_p", "\\'") . '\', "\n"; $f++;';
121 $compare = "@($op1_p $operator $op2_p)";
132 function prepareUnaryLine($op, $cmp, $operator) {
135 $error = "echo '" . addcslashes("$operator $op_p", "\\'") . '\', "\n"; $f++;';
137 $compare = "@($operator $op_p)";
156 foreach ($binaryOperators as $operator) {
157 $line = prepareBinaryLine($left, $right, function() use ($left, $right, $operator) {
158 return eval("return @(\$left $operator \$right);");
159 }, $operator);
165 foreach ($unaryOperators as $operator) {
166 $line = prepareUnaryLine($right, function() use ($right, $operator) {
167 return eval("return @($operator \$right);");
168 }, $operator);