<?php class ZZ { const Z = 999; } enum IntLimits : int { case Max = PHP_INT_MAX; case Min = PHP_INT_MIN; case SomePositiveInt = ZZ::Z; } foreach (IntLimits::cases() as $case) { var_dump($case->name, $case->value); }
You have javascript disabled. You will not be able to edit any code.