Lines Matching refs:operator
113 function prepareBinaryLine($op1, $op2, $cmp, $operator) {
117 $error = "echo '" . addcslashes("$op1_p $operator $op2_p", "\\'") . '\', "\n"; $f++;';
119 $compare = "@($op1_p $operator $op2_p)";
130 function prepareUnaryLine($op, $cmp, $operator) {
133 $error = "echo '" . addcslashes("$operator $op_p", "\\'") . '\', "\n"; $f++;';
135 $compare = "@($operator $op_p)";
154 foreach ($binaryOperators as $operator) {
155 $line = prepareBinaryLine($left, $right, function() use ($left, $right, $operator) {
156 return eval("return @(\$left $operator \$right);");
157 }, $operator);
163 foreach ($unaryOperators as $operator) {
164 $line = prepareUnaryLine($right, function() use ($right, $operator) {
165 return eval("return @($operator \$right);");
166 }, $operator);