GGAMI.NET

php enum 타입 instanceof 하는 방법

if($item instanceof UnitEnum) { ray('enum type'); }

php enum 타입을 체크해야할때, 이렇게 하면 된다.

다른 글