Differences between version 3 and previous revision of TernaryOperator.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Monday, May 19, 2003 12:19:50 pm | by SamCannell | Revert |
Older page: | version 2 | Last edited on Saturday, October 26, 2002 1:49:43 pm | by SamCannell | Revert |
@@ -1,5 +1,5 @@
-The "?:", or Ternary operator in PHP, Java, Java
, C and possibly other languages is essentially shorthand for a block of code like:
+The "?:", or Ternary operator in PHP, Java, Perl
, C and possibly other languages is essentially shorthand for a block of code like:
if ($a==1) {
print "A is 1!";
} else {