php2go/fixtures/0009-consts.php

13 lines
193 B
PHP
Raw Normal View History

<?php
const GLOBALCONST = 3,
OTHERCONST = 4;
define('GLOBALDEFINE', 5);
class MyClass {
const MEMBERCONST = 6;
}
echo GLOBALCONST + OTHERCONST + GLOBALDEFINE + MyClass::MEMBERCONST;