[ create a new paste ] login | about

Link: http://codepad.org/UW35xnYs    [ raw code | output | fork ]

PHP, pasted on Aug 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

abstract class Suit
{
  const SPADES	 = 0;
  const HEARTS	 = 1;
  const DIAMONDS = 2;
  const CLUBS	 = 3;
}

echo "Suit::HEARTS has value " . Suit::HEARTS;

?>


Output:
1
Suit::HEARTS has value 1


Create a new paste based on this one


Comments: